Skip to content

Commit

Permalink
fix bad coroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Sep 12, 2024
1 parent 99a9b02 commit 5e0766f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/peaqhvac/sensors/offsetsensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ def icon(self) -> str:
return "mdi:stairs"

async def async_update(self) -> None:
self._state = await self._hub.hvac.house_heater.async_adjusted_offset(
adjusted_offset = await self._hub.hvac.house_heater.async_adjusted_offset(
self._hub.hvac.model.current_offset
)[0]
)
self._state = adjusted_offset[0]

offsetsmodel: OffsetsExportModel = await self._hub.async_offset_export_model()
data: CalculatedOffsetModel = await self._hub.hvac.house_heater.async_calculated_offsetdata(
Expand Down

0 comments on commit 5e0766f

Please sign in to comment.