Skip to content

Commit

Permalink
simplified vrc700 logic
Browse files Browse the repository at this point in the history
  • Loading branch information
signalkraft committed Feb 20, 2024
1 parent 85e51c6 commit af0df63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/mypyllant/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,10 @@ async def async_set_operation_mode(
enum_value = operation_mode.upper().replace(" ", "_")
if self.domestic_hot_water.control_identifier.is_vrc700:
enum_class = DHWOperationModeVRC700 # type: ignore
cylinder_boost = str(DHWCurrentSpecialFunctionVRC700.CYLINDER_BOOST)
else:
enum_class = DHWOperationMode # type: ignore
cylinder_boost = str(DHWCurrentSpecialFunction.CYLINDER_BOOST)

if enum_value == cylinder_boost:
if enum_value == DHWCurrentSpecialFunction.CYLINDER_BOOST:
# Boost was requested
await self.coordinator.api.boost_domestic_hot_water(
self.domestic_hot_water,
Expand Down

0 comments on commit af0df63

Please sign in to comment.