mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 04:50:17 +00:00
Use TestCase.addCleanup (#36560)
This commit is contained in:
@@ -37,8 +37,9 @@ class TestSleepIQ(unittest.TestCase):
|
||||
self.config = {
|
||||
"sleepiq": {"username": self.username, "password": self.password}
|
||||
}
|
||||
self.addCleanup(self.tear_down_cleanup)
|
||||
|
||||
def tearDown(self): # pylint: disable=invalid-name
|
||||
def tear_down_cleanup(self):
|
||||
"""Stop everything that was started."""
|
||||
self.hass.stop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user