mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Reduce icmplib ping timeout to match ping binary behavior (#41620)
This commit is contained in:
parent
178b2d8c22
commit
c7bbba9d48
@ -143,6 +143,7 @@ class PingDataICMPLib(PingData):
|
|||||||
icmp_ping,
|
icmp_ping,
|
||||||
self._ip_address,
|
self._ip_address,
|
||||||
count=self._count,
|
count=self._count,
|
||||||
|
timeout=1,
|
||||||
id=async_get_next_ping_id(self.hass),
|
id=async_get_next_ping_id(self.hass),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -92,7 +92,7 @@ class HostICMPLib:
|
|||||||
).result()
|
).result()
|
||||||
|
|
||||||
return icmp_ping(
|
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
|
).is_alive
|
||||||
|
|
||||||
def update(self, see):
|
def update(self, see):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user