Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
fix await issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmeli committed May 4, 2023
1 parent 436eb6c commit 309a50b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/duke_energy_gateway/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion custom_components/duke_energy_gateway/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 309a50b

Please sign in to comment.