From 0a71be693ee9a68df6cc18b13060b48548f28c8c Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 18 Feb 2021 11:00:41 +0300 Subject: [PATCH] fix bugs --- custom_components/mega/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mega/entities.py b/custom_components/mega/entities.py index a0603e8..ebdb370 100644 --- a/custom_components/mega/entities.py +++ b/custom_components/mega/entities.py @@ -258,7 +258,7 @@ class MegaOutPort(MegaPushEntity): self.mega.lg.warning(f'{self.entity_id}: {val} is not a dict') return _val = val.get(self.addr, val.get(self.addr.lower(), val.get(self.addr.upper()))) - if not isinstance(val, str): + if not isinstance(_val, str): self.mega.lg.warning(f'{self.entity_id}: can not get {self.addr} from {val}, recieved {_val}') return _val = _val.split('/')