mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Do not log an error when a host is unreachable while pinging (#40024)
This commit is contained in:
parent
621526bbae
commit
f3d50e2104
@ -213,7 +213,8 @@ class PingDataSubProcess(PingData):
|
||||
out_error,
|
||||
)
|
||||
|
||||
if pinger.returncode != 0:
|
||||
if pinger.returncode > 1:
|
||||
# returncode of 1 means the host is unreachable
|
||||
_LOGGER.exception(
|
||||
"Error running command: `%s`, return code: %s",
|
||||
" ".join(self._ping_cmd),
|
||||
|
Loading…
x
Reference in New Issue
Block a user