Fix tests closing properly (#5203)
This commit is contained in:
parent
2b991e2f32
commit
aa1e4c564c
14 changed files with 108 additions and 83 deletions
|
@ -24,6 +24,7 @@ class TestComponentsDeviceTrackerMQTT(unittest.TestCase):
|
|||
|
||||
def tearDown(self): # pylint: disable=invalid-name
|
||||
"""Stop everything that was started."""
|
||||
self.hass.stop()
|
||||
try:
|
||||
os.remove(self.hass.config.path(device_tracker.YAML_DEVICES))
|
||||
except FileNotFoundError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue