mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 14:30:22 +00:00
Use TestCase.addCleanup (#36560)
This commit is contained in:
@@ -120,11 +120,7 @@ class TestComponentsCore(unittest.TestCase):
|
||||
|
||||
self.hass.states.set("light.Bowl", STATE_ON)
|
||||
self.hass.states.set("light.Ceiling", STATE_OFF)
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
def tearDown(self):
|
||||
"""Stop everything that was started."""
|
||||
self.hass.stop()
|
||||
self.addCleanup(self.hass.stop)
|
||||
|
||||
def test_is_on(self):
|
||||
"""Test is_on method."""
|
||||
|
||||
Reference in New Issue
Block a user