mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 00:54:28 +05:00
fix config scan for ds2413
This commit is contained in:
@@ -460,7 +460,7 @@ class MegaD:
|
|||||||
self.lg.warning(f'can not add ds2413 on port {port}, it has wrong data: {_data}')
|
self.lg.warning(f'can not add ds2413 on port {port}, it has wrong data: {_data}')
|
||||||
continue
|
continue
|
||||||
for addr, state in data.items():
|
for addr, state in data.items():
|
||||||
ret['light'][port].append([
|
ret['light'][port].extend([
|
||||||
{"index": 0, "addr": addr, "id_suffix": f'{addr}_a', "http_cmd": 'ds2413'},
|
{"index": 0, "addr": addr, "id_suffix": f'{addr}_a', "http_cmd": 'ds2413'},
|
||||||
{"index": 1, "addr": addr, "id_suffix": f'{addr}_b', "http_cmd": 'ds2413'},
|
{"index": 1, "addr": addr, "id_suffix": f'{addr}_b', "http_cmd": 'ds2413'},
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user