mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Fix geofency requiring a configuration.yaml entry (#20631)
This commit is contained in:
parent
495524ecc0
commit
57ef8c271e
@ -68,8 +68,8 @@ WEBHOOK_SCHEMA = vol.Schema({
|
||||
|
||||
async def async_setup(hass, hass_config):
|
||||
"""Set up the Geofency component."""
|
||||
config = hass_config[DOMAIN]
|
||||
mobile_beacons = config[CONF_MOBILE_BEACONS]
|
||||
config = hass_config.get(DOMAIN, {})
|
||||
mobile_beacons = config.get(CONF_MOBILE_BEACONS, [])
|
||||
hass.data[DOMAIN] = [slugify(beacon) for beacon in mobile_beacons]
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user