1 parent
cb63a9d7e1
commit
101ab5c3fa
3 files changed
+14
-18
No files matched your search
@@ -30,7 +30,7 @@ def system():
|
||||
return "Windows"
|
||||
|
||||
|
||||
class TestWOLSwitch(unittest.TestCase):
|
||||
class TestWolSwitch(unittest.TestCase):
|
||||
"""Test the wol switch."""
|
||||
|
||||
def setUp(self):
|
||||
@@ -53,7 +53,7 @@ class TestWOLSwitch(unittest.TestCase):
|
||||
{
|
||||
"switch": {
|
||||
"platform": "wake_on_lan",
|
||||
"mac_address": "00-01-02-03-04-05",
|
||||
"mac": "00-01-02-03-04-05",
|
||||
"host": "validhostname",
|
||||
}
|
||||
},
|
||||
@@ -89,7 +89,7 @@ class TestWOLSwitch(unittest.TestCase):
|
||||
{
|
||||
"switch": {
|
||||
"platform": "wake_on_lan",
|
||||
"mac_address": "00-01-02-03-04-05",
|
||||
"mac": "00-01-02-03-04-05",
|
||||
"host": "validhostname",
|
||||
}
|
||||
},
|
||||
@@ -113,7 +113,7 @@ class TestWOLSwitch(unittest.TestCase):
|
||||
assert setup_component(
|
||||
self.hass,
|
||||
switch.DOMAIN,
|
||||
{"switch": {"platform": "wake_on_lan", "mac_address": "00-01-02-03-04-05"}},
|
||||
{"switch": {"platform": "wake_on_lan", "mac": "00-01-02-03-04-05"}},
|
||||
)
|
||||
|
||||
@patch("wakeonlan.send_magic_packet", new=send_magic_packet)
|
||||
@@ -126,7 +126,7 @@ class TestWOLSwitch(unittest.TestCase):
|
||||
{
|
||||
"switch": {
|
||||
"platform": "wake_on_lan",
|
||||
"mac_address": "00-01-02-03-04-05",
|
||||
"mac": "00-01-02-03-04-05",
|
||||
"broadcast_address": "255.255.255.255",
|
||||
}
|
||||
},
|
||||
@@ -150,7 +150,7 @@ class TestWOLSwitch(unittest.TestCase):
|
||||
{
|
||||
"switch": {
|
||||
"platform": "wake_on_lan",
|
||||
"mac_address": "00-01-02-03-04-05",
|
||||
"mac": "00-01-02-03-04-05",
|
||||
"host": "validhostname",
|
||||
"turn_off": {"service": "shell_command.turn_off_target"},
|
||||
}
|
||||
@@ -192,7 +192,7 @@ class TestWOLSwitch(unittest.TestCase):
|
||||
{
|
||||
"switch": {
|
||||
"platform": "wake_on_lan",
|
||||
"mac_address": "00-01-02-03-04-05",
|
||||
"mac": "00-01-02-03-04-05",
|
||||
"host": "invalidhostname",
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user