mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Update based upon forum post (#15876)
Based upon [this post](https://community.home-assistant.io/t/device-tracker-ping-on-windows-not-working-solved/61474/3) it looks like we've found why people couldn't get the ping tracker working on Windows.
This commit is contained in:
parent
b6bc0097b8
commit
fcc918a146
@ -38,7 +38,7 @@ class Host:
|
|||||||
self.dev_id = dev_id
|
self.dev_id = dev_id
|
||||||
self._count = config[CONF_PING_COUNT]
|
self._count = config[CONF_PING_COUNT]
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
self._ping_cmd = ['ping', '-n 1', '-w', '1000', self.ip_address]
|
self._ping_cmd = ['ping', '-n', '1', '-w', '1000', self.ip_address]
|
||||||
else:
|
else:
|
||||||
self._ping_cmd = ['ping', '-n', '-q', '-c1', '-W1',
|
self._ping_cmd = ['ping', '-n', '-q', '-c1', '-W1',
|
||||||
self.ip_address]
|
self.ip_address]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user