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'}, ])