diff --git a/hikvision-doorbell/src/doorbell.py b/hikvision-doorbell/src/doorbell.py index d936582..37e4f4a 100644 --- a/hikvision-doorbell/src/doorbell.py +++ b/hikvision-doorbell/src/doorbell.py @@ -178,6 +178,8 @@ def user_config() -> int: if self._config.output_relays is not None: logger.debug("Using the configured number of switches: {}", self._config.output_relays) return self._config.output_relays + else: + return 0 raise RuntimeError("No user configuration specified") # Define the list of available endpoints to try