Skip to content

Commit

Permalink
Remove callsensor for indoor
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Mar 17, 2023
1 parent b621413 commit c7fa06a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hikvision-doorbell/src/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ def __init__(self, config: AppConfig.MQTT, doorbells: Registry) -> None:
)
# Create the sensors for each doorbell:
for doorbell in doorbells.values():
# Consider only outdoor units


logger.debug("Setting up entities for {}", doorbell._config.name)
# Create an empty dict to hold the sensors
Expand All @@ -111,6 +109,8 @@ def __init__(self, config: AppConfig.MQTT, doorbells: Registry) -> None:

# Remove spaces and - from doorbell name
sanitized_doorbell_name = sanitize_doorbell_name(doorbell_name)

# No Callsensor for indoor
if not doorbell._type is DeviceType.INDOOR:

##################
Expand Down

0 comments on commit c7fa06a

Please sign in to comment.