(self)
return self.get_yandex_mode_by_ha_mode(ha_mode, False)
Return the state value of this capability for this entity.
Return the state value of this capability for this entity.
Return the state value of this capability for this entity .
def get_value(self) -> str | None:
        """Return the state value of this capability for this entity."""
        ha_mode = self.state.state
        if self.state_value_attribute:
            ha_mode = self.state.attributes.get(self.state_value_attribute)
        return self.get_yandex_mode_by_ha_mode(ha_mode, False)
def get_value ( self ) -> str | None : ha_mode = self . state . state if self . state_value_attribute : ha_mode = self . state . attributes . get ( self . state_value_attribute ) return self . get_yandex_mode_by_ha_mode ( ha_mode , False )