Notify Alexa when exposed entities change (#24609)
This commit is contained in:
parent
a89c8eeabe
commit
6d9f1b3fd3
12 changed files with 436 additions and 68 deletions
|
@ -48,7 +48,7 @@ class AlexaDirective:
|
|||
self.entity_id = _endpoint_id.replace('#', '.')
|
||||
|
||||
self.entity = hass.states.get(self.entity_id)
|
||||
if not self.entity:
|
||||
if not self.entity or not config.should_expose(self.entity_id):
|
||||
raise AlexaInvalidEndpointError(_endpoint_id)
|
||||
|
||||
self.endpoint = ENTITY_ADAPTERS[self.entity.domain](
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue