From 9fab4fce62acee87204e28cad371a3ecad809016 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 17 Feb 2021 18:08:53 +0300 Subject: [PATCH] fix config scan for ds2413 --- custom_components/mega/hub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mega/hub.py b/custom_components/mega/hub.py index 65465ea..19aea34 100644 --- a/custom_components/mega/hub.py +++ b/custom_components/mega/hub.py @@ -460,7 +460,7 @@ class MegaD: self.lg.warning(f'can not add ds2413 on port {port}, it has wrong data: {_data}') continue 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": 1, "addr": addr, "id_suffix": f'{addr}_b', "http_cmd": 'ds2413'}, ])