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:
DubhAd 2018-08-07 17:12:36 +01:00 committed by Fabian Affolter
parent b6bc0097b8
commit fcc918a146

View File

@ -38,7 +38,7 @@ class Host:
self.dev_id = dev_id
self._count = config[CONF_PING_COUNT]
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:
self._ping_cmd = ['ping', '-n', '-q', '-c1', '-W1',
self.ip_address]