Skip to content

Commit

Permalink
dont set to standby if the telegram was not processed by a RemoteValu…
Browse files Browse the repository at this point in the history
…e of the ClimateMode device (#418)
  • Loading branch information
farmio committed Sep 22, 2020
1 parent 0aa8107 commit 6b91981
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xknx/devices/climate_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,17 @@ def gather_operation_modes(self):
async def process_group_write(self, telegram):
"""Process incoming and outgoing GROUP WRITE telegram."""
if self.supports_operation_mode:
processed = False
for rv in self._iter_remote_values():
if await rv.process(telegram):
# don't set when binary climate mode rv is False
if rv.value:
await self._set_internal_operation_mode(rv.value)
return
processed = True
# if no operation mode has been set and all binary operation modes are False
await self._set_internal_operation_mode(HVACOperationMode.STANDBY)
if processed:
await self._set_internal_operation_mode(HVACOperationMode.STANDBY)

async def sync(self, wait_for_result=False):
"""Read states of device from KNX bus."""
Expand Down

0 comments on commit 6b91981

Please sign in to comment.