diff --git a/homeassistant/components/octoprint.py b/homeassistant/components/octoprint.py index b626e9a93b55b62744f474d199e492904693d598..853ee67db9de4ec689a8908593df231d1077907d 100644 --- a/homeassistant/components/octoprint.py +++ b/homeassistant/components/octoprint.py @@ -92,6 +92,10 @@ def setup(hass, config): discovery.listen(hass, SERVICE_OCTOPRINT, device_discovered) + if DOMAIN not in config: + # Skip the setup if there is no configuration present + return True + for printer in config[DOMAIN]: name = printer[CONF_NAME] ssl = 's' if printer[CONF_SSL] else ''