vesync don't assume fan speed target (#155617)

This commit is contained in:
cdnninja
2025-11-03 07:57:44 +01:00
committed by Bram Kragten
parent 9111c6df90
commit de86bedb80
+6 -2
View File
@@ -267,8 +267,12 @@ class VeSyncFanHA(VeSyncBaseEntity, FanEntity):
await self.async_set_preset_mode(preset_mode)
return
if percentage is None:
percentage = 50
await self.async_set_percentage(percentage)
success = await self.device.turn_on()
if not success:
raise HomeAssistantError(self.device.last_response.message)
self.schedule_update_ha_state()
else:
await self.async_set_percentage(percentage)
async def async_turn_off(self, **kwargs: Any) -> None:
"""Turn the device off."""