From cce8d58af187c0a7fb7585eab5bda9fed731b719 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 10 Feb 2022 13:36:58 -0800 Subject: More cleanup. --- smart_home/outlets.py | 1 + 1 file changed, 1 insertion(+) (limited to 'smart_home/outlets.py') diff --git a/smart_home/outlets.py b/smart_home/outlets.py index 500ea05..a7f6f47 100644 --- a/smart_home/outlets.py +++ b/smart_home/outlets.py @@ -155,6 +155,7 @@ class TPLinkOutletWithChildren(TPLinkOutlet): self.children: List[str] = [] self.info: Optional[Dict] = None self.info_ts: Optional[datetime.datetime] = None + assert self.keywords is not None assert "children" in self.keywords self.info = self.get_info() if self.info is not None: -- cgit v1.3