I just started getting the following message when trying to turn on the device #30
-
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'd like to add that the integration did work as expected, and that it still allows me to shut the device off and the UI will also update when the device is powered on. |
Beta Was this translation helpful? Give feedback.
-
Thanks for bringing this to my attention. Looks like ~3 weeks ago someone on the Home Assistant side made changes to the Home Assistant Fan entity code. Previously, the @final
async def async_handle_turn_on_service(
self,
percentage: int | None = None,
preset_mode: str | None = None,
**kwargs: Any,
) -> None:
"""Validate and turn on the fan."""
if preset_mode is not None:
self._valid_preset_mode_or_raise(preset_mode)
await self.async_turn_on(percentage, preset_mode, **kwargs)
async def async_turn_on(
self,
percentage: int | None = None,
preset_mode: str | None = None,
**kwargs: Any,
) -> None:
"""Turn on the fan."""
await self.hass.async_add_executor_job(
ft.partial(
self.turn_on,
percentage=percentage,
preset_mode=preset_mode,
**kwargs,
)
) As a result, the line Update to version |
Beta Was this translation helpful? Give feedback.
Thanks for bringing this to my attention. Looks like ~3 weeks ago someone on the Home Assistant side made changes to the Home Assistant Fan entity code. Previously, the
async_turn_on
method defined in the Cowayfan.py
file would call theasync_turn_on
method found in the Home Assistant fan entity code. Instead, now an additional validation method is called: