Skip to content

Commit

Permalink
delete no entity can't be named 'total'
Browse files Browse the repository at this point in the history
  • Loading branch information
maxyvon committed Jan 22, 2025
1 parent 495c74d commit cb991f4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions custom_components/hilo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,7 @@ def create_energy_entity(hilo, device):
) is None:
energy_entity = f"sensor.{slugify(device.name)}_hilo_energy"
energy_entity = energy_entity.replace("sensor.", "")
if energy_entity == HILO_ENERGY_TOTAL:
LOG.error(
"An hilo entity can't be named 'total' because it conflicts "
"with the generated name for the smart energy meter"
)
return

tariff_list = default_tariff_list
if device.type == "Meter":
tariff_list = validate_tariff_list(tariff_config)
Expand Down

0 comments on commit cb991f4

Please sign in to comment.