mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix BloomSky KeyError: 'monitored_conditions' (#34613)
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
637ff5698c
commit
5b7a4434c4
@ -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]
|
||||
|
||||
|
@ -10,6 +10,9 @@ from . import DOMAIN
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up access to BloomSky cameras."""
|
||||
if discovery_info is not None:
|
||||
return
|
||||
|
||||
bloomsky = hass.data[DOMAIN]
|
||||
|
||||
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):
|
||||
"""Set up the available BloomSky weather sensors."""
|
||||
# Default needed in case of discovery
|
||||
if discovery_info is not None:
|
||||
return
|
||||
|
||||
sensors = config[CONF_MONITORED_CONDITIONS]
|
||||
bloomsky = hass.data[DOMAIN]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user