mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Fixed doorbird config without events (empty list) (#19121)
This commit is contained in:
committed by
Fabian Affolter
parent
30064655c2
commit
4b4f51fb6f
@@ -104,7 +104,7 @@ def setup(hass, config):
|
||||
return False
|
||||
|
||||
# Subscribe to doorbell or motion events
|
||||
if events is not None:
|
||||
if events:
|
||||
doorstation.update_schedule(hass)
|
||||
|
||||
hass.data[DOMAIN] = doorstations
|
||||
|
Reference in New Issue
Block a user