diff --git a/homeassistant/components/advantage_air/select.py b/homeassistant/components/advantage_air/select.py index 9cfece25b24..97ec0f9705c 100644 --- a/homeassistant/components/advantage_air/select.py +++ b/homeassistant/components/advantage_air/select.py @@ -46,11 +46,11 @@ class AdvantageAirMyZone(AdvantageAirAcEntity, SelectEntity): self._attr_options.append(zone["name"]) @property - def current_option(self): + def current_option(self) -> str: """Return the current MyZone.""" return self._number_to_name[self._ac["myZone"]] - async def async_select_option(self, option): + async def async_select_option(self, option: str) -> None: """Set the MyZone.""" await self.async_change( {self.ac_key: {"info": {"myZone": self._name_to_number[option]}}} diff --git a/homeassistant/components/xiaomi_miio/select.py b/homeassistant/components/xiaomi_miio/select.py index b7e6a65775e..7f6f8ce1cb1 100644 --- a/homeassistant/components/xiaomi_miio/select.py +++ b/homeassistant/components/xiaomi_miio/select.py @@ -164,7 +164,7 @@ class XiaomiAirHumidifierSelector(XiaomiSelector): self.async_write_ha_state() @property - def current_option(self): + def current_option(self) -> str: """Return the current option.""" return self.led_brightness.lower() diff --git a/homeassistant/components/yamaha_musiccast/select.py b/homeassistant/components/yamaha_musiccast/select.py index d57d1c07f68..475d32311ed 100644 --- a/homeassistant/components/yamaha_musiccast/select.py +++ b/homeassistant/components/yamaha_musiccast/select.py @@ -52,11 +52,11 @@ class SelectableCapapility(MusicCastCapabilityEntity, SelectEntity): return DEVICE_CLASS_MAPPING.get(self.capability.id) @property - def options(self): + def options(self) -> list[str]: """Return the list possible options.""" return list(self.capability.options.values()) @property - def current_option(self): + def current_option(self) -> str | None: """Return the currently selected option.""" return self.capability.options.get(self.capability.current)