From 8bfe27d10318ea23d1238d7bc430f92df50aa883 Mon Sep 17 00:00:00 2001 From: Petr Leo Compel Date: Thu, 11 Jan 2024 09:32:34 +0100 Subject: [PATCH] fix: python syntax error "is not" with a literal --- custom_components/hikvision_axpro/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hikvision_axpro/__init__.py b/custom_components/hikvision_axpro/__init__.py index a9bb101..1ba9803 100644 --- a/custom_components/hikvision_axpro/__init__.py +++ b/custom_components/hikvision_axpro/__init__.py @@ -265,7 +265,7 @@ def _update_data(self) -> None: self.sub_systems = {} for subsys in subsys_arr: self.sub_systems[subsys.id] = subsys - if self.use_sub_systems and subsys.id is not 1: + if self.use_sub_systems and subsys.id != 1: continue if subsys.alarm: status = STATE_ALARM_TRIGGERED