diff --git a/custom_components/duke_energy_gateway/manifest.json b/custom_components/duke_energy_gateway/manifest.json index 3a39dd7..fd23201 100644 --- a/custom_components/duke_energy_gateway/manifest.json +++ b/custom_components/duke_energy_gateway/manifest.json @@ -8,5 +8,5 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/mjmeli/ha-duke-energy-gateway/issues", "requirements": ["pyduke-energy==1.0.5"], - "version": "0.1.5" + "version": "0.1.6" } diff --git a/custom_components/duke_energy_gateway/sensor.py b/custom_components/duke_energy_gateway/sensor.py index 0e0f421..0d252f5 100644 --- a/custom_components/duke_energy_gateway/sensor.py +++ b/custom_components/duke_energy_gateway/sensor.py @@ -200,7 +200,7 @@ async def async_added_to_hass(self): async def async_on_new_measurement(measurement: RealtimeUsageMeasurement): _LOGGER.debug("New measurement received: %f", measurement.usage) self._state = measurement.usage - await self.async_write_ha_state() + self.async_write_ha_state() # Attach subscriber callback self._coordinator.async_realtime_subscribe_to_dispatcher(