support newer deCONZ api versions (#2410)
This commit is contained in:
parent
ba8e417390
commit
449be29022
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ def setup_bridge(host, hass, add_devices_callback, filename,
|
|||
new_lights = []
|
||||
|
||||
api_name = api.get('config').get('name')
|
||||
if api_name == 'RaspBee-GW':
|
||||
if api_name in ('RaspBee-GW', 'deCONZ-GW'):
|
||||
bridge_type = 'deconz'
|
||||
else:
|
||||
bridge_type = 'hue'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue