mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Bugfix: prevent error notification when octoprint server auto detected but no configuration present. (#20303)
This commit is contained in:
parent
6511e11ec9
commit
3e056a24dd
@ -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 ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user