Reduce icmplib ping timeout to match ping binary behavior (#41620)
parent
178b2d8c22
commit
c7bbba9d48
|
@ -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),
|
||||
)
|
||||
)
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue