mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix implicit-return in airtouch4 (#122839)
This commit is contained in:
parent
7b5db6521c
commit
09cd79772f
@ -156,7 +156,8 @@ class AirtouchAC(CoordinatorEntity, ClimateEntity):
|
|||||||
raise ValueError(f"Unsupported HVAC mode: {hvac_mode}")
|
raise ValueError(f"Unsupported HVAC mode: {hvac_mode}")
|
||||||
|
|
||||||
if hvac_mode == HVACMode.OFF:
|
if hvac_mode == HVACMode.OFF:
|
||||||
return await self.async_turn_off()
|
await self.async_turn_off()
|
||||||
|
return
|
||||||
await self._airtouch.SetCoolingModeForAc(
|
await self._airtouch.SetCoolingModeForAc(
|
||||||
self._ac_number, HA_STATE_TO_AT[hvac_mode]
|
self._ac_number, HA_STATE_TO_AT[hvac_mode]
|
||||||
)
|
)
|
||||||
@ -262,7 +263,8 @@ class AirtouchGroup(CoordinatorEntity, ClimateEntity):
|
|||||||
raise ValueError(f"Unsupported HVAC mode: {hvac_mode}")
|
raise ValueError(f"Unsupported HVAC mode: {hvac_mode}")
|
||||||
|
|
||||||
if hvac_mode == HVACMode.OFF:
|
if hvac_mode == HVACMode.OFF:
|
||||||
return await self.async_turn_off()
|
await self.async_turn_off()
|
||||||
|
return
|
||||||
if self.hvac_mode == HVACMode.OFF:
|
if self.hvac_mode == HVACMode.OFF:
|
||||||
await self.async_turn_on()
|
await self.async_turn_on()
|
||||||
self._unit = self._airtouch.GetGroups()[self._group_number]
|
self._unit = self._airtouch.GetGroups()[self._group_number]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user