Reduce icmplib ping timeout to match ping binary behavior (#41620)

pull/41667/head
J. Nick Koston 2020-10-11 11:12:27 -05:00 committed by GitHub
parent 178b2d8c22
commit c7bbba9d48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -143,6 +143,7 @@ class PingDataICMPLib(PingData):
icmp_ping,
self._ip_address,
count=self._count,
timeout=1,
id=async_get_next_ping_id(self.hass),
)
)

View File

@ -92,7 +92,7 @@ class HostICMPLib:
).result()
return icmp_ping(
self.ip_address, count=PING_ATTEMPTS_COUNT, id=next_id
self.ip_address, count=PING_ATTEMPTS_COUNT, timeout=1, id=next_id
).is_alive
def update(self, see):