Guard for None entity config (#24838)

This commit is contained in:
Paulus Schoutsen 2019-06-28 22:23:00 -07:00 committed by GitHub
parent 333e1d6789
commit 4b5718431d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ class AlexaConfig(AbstractConfig):
@property
def entity_config(self):
"""Return entity config."""
return self._config.get(CONF_ENTITY_CONFIG, {})
return self._config.get(CONF_ENTITY_CONFIG) or {}
def should_expose(self, entity_id):
"""If an entity should be exposed."""

View file

@ -24,7 +24,7 @@ class CloudGoogleConfig(AbstractConfig):
@property
def entity_config(self):
"""Return entity config."""
return self._config.get(CONF_ENTITY_CONFIG)
return self._config.get(CONF_ENTITY_CONFIG) or {}
@property
def secure_devices_pin(self):