From fcc918a146620ba6b641ddde1e8dd846b53121c4 Mon Sep 17 00:00:00 2001 From: DubhAd Date: Tue, 7 Aug 2018 17:12:36 +0100 Subject: [PATCH] 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. --- homeassistant/components/device_tracker/ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/ping.py b/homeassistant/components/device_tracker/ping.py index d09e1930d4f..f3492da9e80 100644 --- a/homeassistant/components/device_tracker/ping.py +++ b/homeassistant/components/device_tracker/ping.py @@ -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]