Update for switch.wake_on_lan fails

After updating to 0.41.0, suddenly my log is dominated by the following error:

17-03-30 17:48:48 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.wake_on_lan fails
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 225, in async_update_ha_state
    None, self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/switch/wake_on_lan.py", line 94, in update
    status = sp.call(ping_cmd, stdout=sp.DEVNULL)
  File "/usr/lib/python3.4/subprocess.py", line 537, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.4/subprocess.py", line 1395, in _execute_child
    restore_signals, start_new_session, preexec_fn)
OSError: [Errno 12] Cannot allocate memory

I have to following wake-on-lan switch configured (which worked fine from 0.35.0):

  - platform: wake_on_lan
    mac_address: "xx-xx-xx-xx-xx-xx"    

Anyone else experiencing the same?

I’m not seeing these errors, however, my wake_on_lan never works without an error. :cry:

There were ‘out of memory’ errors caused by old firmware found in 0.39. The fix was described in the 0.40 release notes