(self)
return modes
Returns list of supported Yandex modes for this entity.
Returns list of supported Yandex modes for this entity.
Returns list of supported Yandex modes for this entity .
def supported_yandex_modes(self) -> list[str]:
        """Returns list of supported Yandex modes for this entity."""
        modes = []

        for ha_value in self.supported_ha_modes:
            value = self.get_yandex_mode_by_ha_mode(ha_value, hide_warnings=True)
            if value is not None and value not in modes:
                modes.append(value)

        return modes
def supported_yandex_modes ( self ) -> list [ str ] : modes = [ ] for ha_value in self . supported_ha_modes : value = self . get_yandex_mode_by_ha_mode ( ha_value , hide_warnings = True ) if value is not None and value not in modes : modes . append ( value ) return modes