mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Guard for None entity config (#24838)
This commit is contained in:
@@ -52,7 +52,7 @@ class AlexaConfig(AbstractConfig):
|
|||||||
@property
|
@property
|
||||||
def entity_config(self):
|
def entity_config(self):
|
||||||
"""Return entity config."""
|
"""Return entity config."""
|
||||||
return self._config.get(CONF_ENTITY_CONFIG, {})
|
return self._config.get(CONF_ENTITY_CONFIG) or {}
|
||||||
|
|
||||||
def should_expose(self, entity_id):
|
def should_expose(self, entity_id):
|
||||||
"""If an entity should be exposed."""
|
"""If an entity should be exposed."""
|
||||||
|
@@ -24,7 +24,7 @@ class CloudGoogleConfig(AbstractConfig):
|
|||||||
@property
|
@property
|
||||||
def entity_config(self):
|
def entity_config(self):
|
||||||
"""Return entity config."""
|
"""Return entity config."""
|
||||||
return self._config.get(CONF_ENTITY_CONFIG)
|
return self._config.get(CONF_ENTITY_CONFIG) or {}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def secure_devices_pin(self):
|
def secure_devices_pin(self):
|
||||||
|
Reference in New Issue
Block a user