Skip to content

Commit

Permalink
fix: python syntax error "is not" with a literal
Browse files Browse the repository at this point in the history
  • Loading branch information
petrleocompel committed Jan 11, 2024
1 parent 8413914 commit 8bfe27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hikvision_axpro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bfe27d

Please # to comment.