diff --git a/custom_components/hilo/manifest.json b/custom_components/hilo/manifest.json index 60d9cdc..ec4cb07 100755 --- a/custom_components/hilo/manifest.json +++ b/custom_components/hilo/manifest.json @@ -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" } diff --git a/custom_components/hilo/sensor.py b/custom_components/hilo/sensor.py index 07ccfb4..574b760 100755 --- a/custom_components/hilo/sensor.py +++ b/custom_components/hilo/sensor.py @@ -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 "