diff --git a/tests/components/tts/test_init.py b/tests/components/tts/test_init.py index e8746ee762f..0970f0d7490 100644 --- a/tests/components/tts/test_init.py +++ b/tests/components/tts/test_init.py @@ -44,11 +44,11 @@ class TestTTS: def teardown_method(self): """Stop everything that was started.""" + self.hass.stop() + if os.path.isdir(self.default_tts_cache): shutil.rmtree(self.default_tts_cache) - self.hass.stop() - def test_setup_component_demo(self): """Setup the demo platform with defaults.""" config = {