@callback
def _async_check_entity_ready(self):
    'Check if all required values are discovered and create entity.'
    if self._entity_created:
        return
    for (name, disc_settings) in self._schema[const.DISC_VALUES].items():
        if ((self._values[name] is None) and (not disc_settings.get(const.DISC_OPTIONAL))):
            return
    component = self._schema[const.DISC_COMPONENT]
    _LOGGER.debug('Adding Node_id=%s Generic_command_class=%s, Specific_command_class=%s, Command_class=%s, Index=%s, Value type=%s, Genre=%s as %s', self._node.node_id, self._node.node_generic, self._node.node_specific, self.primary.command_class, self.primary.index, self.primary.type, self.primary.genre, component)
    self._entity_created = True
    if (component in PLATFORMS):
        async_dispatcher_send(self._hass, f'{DOMAIN}_new_{component}', self)
Check if all required values are discovered and create entity.
@callback
def _async_check_entity_ready(self):
    
    if self._entity_created:
        return
    for (name, disc_settings) in self._schema[const.DISC_VALUES].items():
        if ((self._values[name] is None) and (not disc_settings.get(const.DISC_OPTIONAL))):
            return
    component = self._schema[const.DISC_COMPONENT]
    _LOGGER.debug('Adding Node_id=%s Generic_command_class=%s, Specific_command_class=%s, Command_class=%s, Index=%s, Value type=%s, Genre=%s as %s', self._node.node_id, self._node.node_generic, self._node.node_specific, self.primary.command_class, self.primary.index, self.primary.type, self.primary.genre, component)
    self._entity_created = True
    if (component in PLATFORMS):
        async_dispatcher_send(self._hass, f'{DOMAIN}_new_{component}', self)