Skip to content

Commit 007b5ca

Browse files
committed
Fix empty params for DIY devices #1515 by @martink-p
1 parent c1fea52 commit 007b5ca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

custom_components/sonoff/core/ewelink/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ def local_update(self, msg: dict):
308308
params,
309309
)
310310

311-
if "sledOnline" in params:
311+
if "params" not in device:
312+
device["params"] = params
313+
elif "sledOnline" in params:
312314
device["params"]["sledOnline"] = params["sledOnline"]
313315

314316
# we can get data from device, but without host

0 commit comments

Comments
 (0)