mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix double underscore typo in fan_mode ValueError (#44182)
This commit is contained in:
parent
a1e452170b
commit
1003464544
@ -318,6 +318,6 @@ class ThermostatEntity(ClimateEntity):
|
||||
async def async_set_fan_mode(self, fan_mode):
|
||||
"""Set new target fan mode."""
|
||||
if fan_mode not in self.fan_modes:
|
||||
raise ValueError(f"Unsupported fan__mode '{fan_mode}'")
|
||||
raise ValueError(f"Unsupported fan_mode '{fan_mode}'")
|
||||
trait = self._device.traits[FanTrait.NAME]
|
||||
await trait.set_timer(FAN_INV_MODE_MAP[fan_mode])
|
||||
|
Loading…
x
Reference in New Issue
Block a user