diff --git a/tests/components/switch/test_wake_on_lan.py b/tests/components/switch/test_wake_on_lan.py
index 3042535ff42..2c4be648c8c 100644
--- a/tests/components/switch/test_wake_on_lan.py
+++ b/tests/components/switch/test_wake_on_lan.py
@@ -98,6 +98,7 @@ class TestWOLSwitch(unittest.TestCase):
         self.assertEqual(STATE_ON, state.state)
 
     @patch('wakeonlan.wol.send_magic_packet', new=send_magic_packet)
+    @patch('subprocess.call', new=call)
     def test_minimal_config(self):
         """Test with minimal config."""
         self.assertTrue(setup_component(self.hass, switch.DOMAIN, {