Skip to content

Commit

Permalink
Merge pull request #390 from ic-dev21/Tarif_sensor_hotfix
Browse files Browse the repository at this point in the history
Device tarif sensor hotfix
  • Loading branch information
valleedelisle authored Mar 7, 2024
2 parents 78a6320 + 04e69c4 commit 2c80d60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/hilo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"iot_class": "cloud_push",
"issue_tracker": "https://github.com/dvd-dev/hilo/issues",
"requirements": ["python-hilo>=2024.3.1"],
"version": "2024.3.1"
"version": "2024.3.2"
}
2 changes: 1 addition & 1 deletion custom_components/hilo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def async_setup_entry(
def create_energy_entity(hilo, device):
device._energy_entity = EnergySensor(hilo, device)
new_entities.append(device._energy_entity)
energy_entity = f"hilo_energy_{slugify(device.name)}"
energy_entity = f"{slugify(device.name)}_hilo_energy"
if energy_entity == HILO_ENERGY_TOTAL:
LOG.error(
"An hilo entity can't be named 'total' because it conflicts "
Expand Down

0 comments on commit 2c80d60

Please sign in to comment.