Notify Alexa when exposed entities change (#24609)

This commit is contained in:
Paulus Schoutsen 2019-06-19 01:06:29 -07:00 committed by Pascal Vizeli
parent a89c8eeabe
commit 6d9f1b3fd3
12 changed files with 436 additions and 68 deletions

View file

@ -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](