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):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the available BloomSky weather binary sensors."""
|
"""Set up the available BloomSky weather binary sensors."""
|
||||||
# Default needed in case of discovery
|
# Default needed in case of discovery
|
||||||
|
if discovery_info is not None:
|
||||||
|
return
|
||||||
|
|
||||||
sensors = config[CONF_MONITORED_CONDITIONS]
|
sensors = config[CONF_MONITORED_CONDITIONS]
|
||||||
bloomsky = hass.data[DOMAIN]
|
bloomsky = hass.data[DOMAIN]
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ from . import DOMAIN
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up access to BloomSky cameras."""
|
"""Set up access to BloomSky cameras."""
|
||||||
|
if discovery_info is not None:
|
||||||
|
return
|
||||||
|
|
||||||
bloomsky = hass.data[DOMAIN]
|
bloomsky = hass.data[DOMAIN]
|
||||||
|
|
||||||
for device in bloomsky.devices.values():
|
for device in bloomsky.devices.values():
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the available BloomSky weather sensors."""
|
"""Set up the available BloomSky weather sensors."""
|
||||||
# Default needed in case of discovery
|
# Default needed in case of discovery
|
||||||
|
if discovery_info is not None:
|
||||||
|
return
|
||||||
|
|
||||||
sensors = config[CONF_MONITORED_CONDITIONS]
|
sensors = config[CONF_MONITORED_CONDITIONS]
|
||||||
bloomsky = hass.data[DOMAIN]
|
bloomsky = hass.data[DOMAIN]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user