mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Bugfix android camera autodiscovery settings (#6510)
Add an optional extended description…
This commit is contained in:
parent
edd96c2b04
commit
49308bec13
@ -202,11 +202,11 @@ def async_setup(hass, config):
|
|||||||
"Android webcam %s not found for discovery!", host)
|
"Android webcam %s not found for discovery!", host)
|
||||||
return
|
return
|
||||||
|
|
||||||
sensors = cam.enabled_sensors
|
sensors = [sensor for sensor in cam.enabled_sensors
|
||||||
switches = cam.enabled_settings
|
if sensor in SENSORS]
|
||||||
if 'motion_active' in sensors:
|
switches = [setting for setting in cam.enabled_settings
|
||||||
sensors.pop('motion_active')
|
if setting in SWITCHES]
|
||||||
motion = True
|
motion = True if 'motion_active' in cam.enabled_sensors else False
|
||||||
|
|
||||||
# load platforms
|
# load platforms
|
||||||
webcams[host] = cam
|
webcams[host] = cam
|
||||||
|
Loading…
x
Reference in New Issue
Block a user