Fix issue on Overkiz Domestic Hot water heater entities with away mode (#83684)
* Don't call set boostMode Duration with 0 to disable boost mode * use states.get() instead of states[] * Revert select statespull/83870/head
parent
38ab48b4fd
commit
4c2975ad99
|
@ -305,14 +305,6 @@ class DomesticHotWaterProduction(OverkizEntity, WaterHeaterEntity):
|
|||
OverkizCommand.SET_BOOST_MODE, OverkizCommand.OFF
|
||||
)
|
||||
|
||||
if self.executor.has_command(OverkizCommand.SET_BOOST_MODE_DURATION):
|
||||
await self.executor.async_execute_command(
|
||||
OverkizCommand.SET_BOOST_MODE_DURATION, 0
|
||||
)
|
||||
await self.executor.async_execute_command(
|
||||
OverkizCommand.REFRESH_BOOST_MODE_DURATION
|
||||
)
|
||||
|
||||
if self.executor.has_command(OverkizCommand.SET_CURRENT_OPERATING_MODE):
|
||||
current_operating_mode = self.executor.select_state(
|
||||
OverkizState.CORE_OPERATING_MODE
|
||||
|
@ -331,5 +323,10 @@ class DomesticHotWaterProduction(OverkizEntity, WaterHeaterEntity):
|
|||
OverkizCommand.SET_DHW_MODE, self.overkiz_to_operation_mode[operation_mode]
|
||||
)
|
||||
|
||||
if self.executor.has_command(OverkizCommand.REFRESH_BOOST_MODE_DURATION):
|
||||
await self.executor.async_execute_command(
|
||||
OverkizCommand.REFRESH_BOOST_MODE_DURATION
|
||||
)
|
||||
|
||||
if self.executor.has_command(OverkizCommand.REFRESH_DHW_MODE):
|
||||
await self.executor.async_execute_command(OverkizCommand.REFRESH_DHW_MODE)
|
||||
|
|
Loading…
Reference in New Issue