(self)
return self.set_value is not None
Test if capability supports random access.
Test if capability supports random access.
Test if capability supports random access .
def support_random_access(self) -> bool:
        """Test if capability supports random access."""
        for key in [CONF_ENTITY_RANGE_MIN, CONF_ENTITY_RANGE_MAX]:
            if key not in self.capability_config.get(CONF_ENTITY_RANGE, {}):
                return False

        return self.set_value is not None
def support_random_access ( self ) -> bool : for key in [ CONF_ENTITY_RANGE_MIN , CONF_ENTITY_RANGE_MAX ] : if key not in self . capability_config . get ( CONF_ENTITY_RANGE , { } ) : return False return self . set_value is not None