mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
modbus scan_interval: 0 is correct configuration (#112619)
This commit is contained in:
parent
177d8f3209
commit
714777e853
@ -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, "
|
||||
|
Loading…
x
Reference in New Issue
Block a user