mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
support newer deCONZ api versions (#2410)
This commit is contained in:
parent
ba8e417390
commit
449be29022
@ -129,7 +129,7 @@ def setup_bridge(host, hass, add_devices_callback, filename,
|
|||||||
new_lights = []
|
new_lights = []
|
||||||
|
|
||||||
api_name = api.get('config').get('name')
|
api_name = api.get('config').get('name')
|
||||||
if api_name == 'RaspBee-GW':
|
if api_name in ('RaspBee-GW', 'deCONZ-GW'):
|
||||||
bridge_type = 'deconz'
|
bridge_type = 'deconz'
|
||||||
else:
|
else:
|
||||||
bridge_type = 'hue'
|
bridge_type = 'hue'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user