mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 04:20:17 +00:00
Use TestCase.addCleanup (#36560)
This commit is contained in:
@@ -25,10 +25,7 @@ class TestProximity(unittest.TestCase):
|
||||
"zoning",
|
||||
{"name": "work", "latitude": 2.3, "longitude": 1.3, "radius": 10},
|
||||
)
|
||||
|
||||
def tearDown(self):
|
||||
"""Stop everything that was started."""
|
||||
self.hass.stop()
|
||||
self.addCleanup(self.hass.stop)
|
||||
|
||||
def test_proximities(self):
|
||||
"""Test a list of proximities."""
|
||||
|
||||
Reference in New Issue
Block a user