(self)
return rv
Returns list of supported HA modes for this entity.
Returns list of supported HA modes for this entity.
Returns list of supported HA modes for this entity .
def supported_ha_modes(self) -> list[str]:
        """Returns list of supported HA modes for this entity."""
        modes = self.entity_config.get(CONF_ENTITY_MODE_MAP, {}).get(self.instance, {})
        rv = list(itertools.chain(*modes.values()))
        return rv
def supported_ha_modes ( self ) -> list [ str ] : modes = self . entity_config . get ( CONF_ENTITY_MODE_MAP , { } ) . get ( self . instance , { } ) rv = list ( itertools . chain ( * modes . values ( ) ) ) return rv