From ef63cfe8e405bd80be8b5fd70044adb990eeff7a Mon Sep 17 00:00:00 2001 From: Myles Eftos Date: Sun, 18 Jun 2017 19:44:41 +1000 Subject: [PATCH] Stopping the logfile spam by piping STDERR to /dev/null (#8081) --- 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 8430a5b8810..c5928ab1809 100644 --- a/homeassistant/components/switch/wake_on_lan.py +++ b/homeassistant/components/switch/wake_on_lan.py @@ -101,5 +101,5 @@ class WOLSwitch(SwitchDevice): ping_cmd = ['ping', '-c', '1', '-W', str(DEFAULT_PING_TIMEOUT), str(self._host)] - status = sp.call(ping_cmd, stdout=sp.DEVNULL) + status = sp.call(ping_cmd, stdout=sp.DEVNULL, stderr=sp.DEVNULL) self._state = not bool(status)