From a5081ac307e037caee6bbd1add49d4c0d9424353 Mon Sep 17 00:00:00 2001 From: siebert Date: Sat, 4 Mar 2017 18:58:01 +0100 Subject: [PATCH] Fix wake_on_lan for german version of Windows 10 (#6397) (#6398) --- homeassistant/components/switch/wake_on_lan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/switch/wake_on_lan.py b/homeassistant/components/switch/wake_on_lan.py index e6efc1869af..57ad4d34f1a 100644 --- a/homeassistant/components/switch/wake_on_lan.py +++ b/homeassistant/components/switch/wake_on_lan.py @@ -91,5 +91,5 @@ class WOLSwitch(SwitchDevice): ping_cmd = 'ping -c 1 -W {} {}'.format( DEFAULT_PING_TIMEOUT, self._host) - status = sp.getstatusoutput(ping_cmd)[0] + status = sp.call(ping_cmd, stdout=sp.DEVNULL) self._state = not bool(status)