diff --git a/homeassistant/components/switchbot/number.py b/homeassistant/components/switchbot/number.py index 0bba7f160edd..0456e51bab56 100644 --- a/homeassistant/components/switchbot/number.py +++ b/homeassistant/components/switchbot/number.py @@ -143,6 +143,7 @@ class SwitchBotStandingFanOscillationAngleNumber(SwitchbotEntity, NumberEntity): self._attr_unique_id = f"{coordinator.base_unique_id}_{description.key}" @exception_handler + @override async def async_set_native_value(self, value: float) -> None: """Set oscillation angle.""" await self.entity_description.setter(self._device, int(value)) diff --git a/homeassistant/components/switchbot/select.py b/homeassistant/components/switchbot/select.py index 3c3945a243e3..ebe5a8737359 100644 --- a/homeassistant/components/switchbot/select.py +++ b/homeassistant/components/switchbot/select.py @@ -106,6 +106,7 @@ class SwitchBotStandingFanNightLightSelect(SwitchbotEntity, SelectEntity): self._attr_unique_id = f"{coordinator.base_unique_id}_night_light" @property + @override def current_option(self) -> str | None: """Return current night light state.""" state = self._device.get_night_light_state() @@ -114,6 +115,7 @@ class SwitchBotStandingFanNightLightSelect(SwitchbotEntity, SelectEntity): return NIGHT_LIGHT_FROM_STATE.get(state) @exception_handler + @override async def async_select_option(self, option: str) -> None: """Set night light state.""" await self._device.set_night_light(NIGHT_LIGHT_TO_STATE[option])