diff --git a/homeassistant/components/geofency/__init__.py b/homeassistant/components/geofency/__init__.py index 239af14add85cb..f58580b83c79b2 100644 --- a/homeassistant/components/geofency/__init__.py +++ b/homeassistant/components/geofency/__init__.py @@ -68,8 +68,8 @@ def _address(value: str) -> str: 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