From 4e6437e89f3e1577bd2e1ff089d1acc22e48516b Mon Sep 17 00:00:00 2001 From: Myles Eftos Date: Sun, 18 Jun 2017 15:58:28 +1000 Subject: [PATCH] Stopping the logfile spam by piping STDERR to /dev/null --- 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 8430a5b881008..c5928ab1809ac 100644 --- a/homeassistant/components/switch/wake_on_lan.py +++ b/homeassistant/components/switch/wake_on_lan.py @@ -101,5 +101,5 @@ def update(self): 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)