mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +02:00
Stopping the logfile spam by piping STDERR to /dev/null (#8081)
This commit is contained in:
committed by
Fabian Affolter
parent
e40f72e773
commit
ef63cfe8e4
@@ -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)
|
||||
|
Reference in New Issue
Block a user