Skip to content

Commit

Permalink
Scan_interval: 0 is allowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Mar 7, 2024
1 parent eb0bff1 commit 74866fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/modbus/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def validate_entity(
name = entity[CONF_NAME]
addr = f"{hub_name}{entity[CONF_ADDRESS]}"
scan_interval = entity.get(CONF_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL)
if scan_interval < 5:
if 0 < scan_interval < 5:
_LOGGER.warning(
(
"%s %s scan_interval(%d) is lower than 5 seconds, "
Expand Down

0 comments on commit 74866fd

Please sign in to comment.