Fix wake_on_lan for german version of Windows 10 (#6397) (#6398)

pull/6402/head
siebert 2017-03-04 18:58:01 +01:00 committed by Paulus Schoutsen
parent f396a4593e
commit a5081ac307
1 changed files with 1 additions and 1 deletions

View File

@ -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)