modbus scan_interval: 0 is correct configuration (#112619)

This commit is contained in:
jan iversen 2024-03-07 17:55:06 +01:00 committed by GitHub
parent 177d8f3209
commit 714777e853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ def check_config(config: dict) -> dict:
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, "