Fix BloomSky KeyError: 'monitored_conditions' (#34613)
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
1 parent
93aa47851a
commit
5b4cfc6b25
3 files changed
+9
No files matched your search
@@ -25,6 +25,9 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the available BloomSky weather binary sensors."""
|
||||
# Default needed in case of discovery
|
||||
if discovery_info is not None:
|
||||
return
|
||||
|
||||
sensors = config[CONF_MONITORED_CONDITIONS]
|
||||
bloomsky = hass.data[DOMAIN]
|
||||
|
||||
|
||||
Reference in new issue
Block a user