Bugfix: prevent error notification when octoprint server auto detected but no configuration present. (#20303)
This commit is contained in:
parent
6511e11ec9
commit
3e056a24dd
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue