Skip to content

Commit

Permalink
fix: Magnet shock status error #131
Browse files Browse the repository at this point in the history
  • Loading branch information
petrleocompel committed Oct 10, 2024
1 parent d8aaf9b commit 6ee7b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hikvision_axpro/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async def async_setup_entry(
devices.append(
HikMagnetOpenDetector(coordinator, zone.zone, entry.entry_id)
)
if zone.zone.magnet_shock_current_status.magnet_shock_current_status is not None:
if zone.zone.magnet_shock_current_status.magnet_shock_status is not None:
devices.append(
HikMagnetShockDetector(coordinator, zone.zone, entry.entry_id)
)
Expand Down

0 comments on commit 6ee7b0a

Please # to comment.