Allow exposing entities not in the entity registry to assistants (#92363)
This commit is contained in:
parent
cc4e741cfa
commit
e3c16e634b
52 changed files with 563 additions and 224 deletions
|
@ -60,7 +60,7 @@ class AlexaConfig(AbstractConfig):
|
|||
"""Return an identifier for the user that represents this config."""
|
||||
return ""
|
||||
|
||||
def should_expose(self, entity_id):
|
||||
async def should_expose(self, entity_id):
|
||||
"""If an entity should be exposed."""
|
||||
if not self._config[CONF_FILTER].empty_filter:
|
||||
return self._config[CONF_FILTER](entity_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue