modbus scan_interval: 0 is correct configuration (#112619)

pull/113250/head
jan iversen 2024-03-07 17:55:06 +01:00 committed by Franck Nijhof
parent 84d14cad7f
commit aa374944a1
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
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, "