Skip to content

Commit

Permalink
misc, not really working rn
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Sep 16, 2024
1 parent b538bd8 commit 1023cd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion custom_components/peaqhvac/sensors/offsetsensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ def icon(self) -> str:
return "mdi:stairs"

async def async_update(self) -> None:
self._state = self._hub.hvac.model.current_offset
#self._state = self._hub.hvac.model.current_offset

offsetsmodel: OffsetsExportModel = await self._hub.async_offset_export_model()
data: CalculatedOffsetModel = await self._hub.hvac.house_heater.async_calculated_offsetdata(
self._hub.hvac.model.current_offset
)
self._state = data.current_offset

self._offsets = offsetsmodel.current_offset
self._offsets_tomorrow = offsetsmodel.current_offset_tomorrow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def __init__(self, hub, observer: IObserver, hours_type: Hoursselection = None):
self.observer.add(ObserverTypes.PrognosisChanged, self._update_prognosis)
self.observer.add(ObserverTypes.HvacPresetChanged, self._set_offset)
self.observer.add(ObserverTypes.SetTemperatureChanged, self._set_offset)
self.observer.add(ObserverTypes.HvacToleranceChanged, self._set_offset)
self.observer.add("OffsetPrecalculation", self._set_offset)
#self.observer.add(ObserverTypes.HvacToleranceChanged, self._set_offset)
#self.observer.add("OffsetPrecalculation", self._set_offset)

@property
@abstractmethod
Expand Down

0 comments on commit 1023cd8

Please sign in to comment.