mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Notify Alexa when exposed entities change (#24609)
This commit is contained in:
committed by
Pascal Vizeli
parent
a89c8eeabe
commit
6d9f1b3fd3
@@ -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](
|
||||
|
||||
Reference in New Issue
Block a user