Skip to content

Commit

Permalink
fix: adding sensors during initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
petrleocompel committed Sep 29, 2024
1 parent e733c55 commit c244e6f
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 @@ -51,7 +51,7 @@ async def async_setup_entry(
for zone in coordinator.zone_status.zone_list:
zone_config = coordinator.devices.get(zone.zone.id)
detector_type: DetectorType | None
if zone_config is not None and False:
if zone_config is not None:
_LOGGER.debug("Adding device with zone config: %s", zone)
_LOGGER.debug("+ config: %s", zone_config)
device_registry.async_get_or_create(
Expand Down

0 comments on commit c244e6f

Please sign in to comment.