Do async_setup_platform in background (#36244)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
1 parent
d488c779fc
commit
276f3afb00
161 files changed
+1184
-305
No files matched your search
@@ -57,6 +57,7 @@ class TestWolSwitch(unittest.TestCase):
|
||||
}
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
state = self.hass.states.get("switch.wake_on_lan")
|
||||
assert STATE_OFF == state.state
|
||||
@@ -93,6 +94,7 @@ class TestWolSwitch(unittest.TestCase):
|
||||
}
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
state = self.hass.states.get("switch.wake_on_lan")
|
||||
assert STATE_OFF == state.state
|
||||
@@ -130,6 +132,7 @@ class TestWolSwitch(unittest.TestCase):
|
||||
}
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
state = self.hass.states.get("switch.wake_on_lan")
|
||||
assert STATE_OFF == state.state
|
||||
@@ -155,6 +158,7 @@ class TestWolSwitch(unittest.TestCase):
|
||||
}
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
calls = mock_service(self.hass, "shell_command", "turn_off_target")
|
||||
|
||||
state = self.hass.states.get("switch.wake_on_lan")
|
||||
@@ -196,6 +200,7 @@ class TestWolSwitch(unittest.TestCase):
|
||||
}
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
state = self.hass.states.get("switch.wake_on_lan")
|
||||
assert STATE_OFF == state.state
|
||||
|
||||
Reference in new issue
Block a user