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