Skip to content

Commit

Permalink
Fix: set permanent boost and set anti cooling (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
fustom committed Feb 5, 2024
1 parent b5b1cd7 commit 1abc2b9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ariston/lydos_hybrid_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def set_permanent_boost_value(self, boost: float) -> None:
self.plant_data,
self.gw,
SeDeviceSettings.SE_PERMANENT_BOOST_ON_OFF,
boost,
self.permanent_boost_value,
1.0 if boost else 0.0,
1.0 if self.permanent_boost_value else 0.0,
)
self.plant_settings[SeDeviceSettings.SE_PERMANENT_BOOST_ON_OFF] = boost

Expand All @@ -113,8 +113,8 @@ async def async_set_permanent_boost_value(self, boost: float) -> None:
self.plant_data,
self.gw,
SeDeviceSettings.SE_PERMANENT_BOOST_ON_OFF,
boost,
self.permanent_boost_value,
1.0 if boost else 0.0,
1.0 if self.permanent_boost_value else 0.0,
)
self.plant_settings[SeDeviceSettings.SE_PERMANENT_BOOST_ON_OFF] = boost

Expand All @@ -124,8 +124,8 @@ def set_anti_cooling_value(self, anti_cooling: float) -> None:
self.plant_data,
self.gw,
SeDeviceSettings.SE_ANTI_COOLING_ON_OFF,
anti_cooling,
self.anti_cooling_value,
1.0 if anti_cooling else 0.0,
1.0 if self.anti_cooling_value else 0.0,
)
self.plant_settings[SeDeviceSettings.SE_ANTI_COOLING_ON_OFF] = anti_cooling

Expand All @@ -135,7 +135,7 @@ async def async_set_anti_cooling_value(self, anti_cooling: float) -> None:
self.plant_data,
self.gw,
SeDeviceSettings.SE_ANTI_COOLING_ON_OFF,
anti_cooling,
self.anti_cooling_value,
1.0 if anti_cooling else 0.0,
1.0 if self.anti_cooling_value else 0.0,
)
self.plant_settings[SeDeviceSettings.SE_ANTI_COOLING_ON_OFF] = anti_cooling

0 comments on commit 1abc2b9

Please sign in to comment.