Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: set permanent boost and set anti cooling #130

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading