mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
parent
742643936f
commit
cf4c02b9fa
@ -440,8 +440,7 @@ class HomeAssistant:
|
|||||||
"""Set the current state."""
|
"""Set the current state."""
|
||||||
self.state = state
|
self.state = state
|
||||||
for prop in ("is_running", "is_stopping"):
|
for prop in ("is_running", "is_stopping"):
|
||||||
with suppress(AttributeError):
|
self.__dict__.pop(prop, None)
|
||||||
delattr(self, prop)
|
|
||||||
|
|
||||||
def start(self) -> int:
|
def start(self) -> int:
|
||||||
"""Start Home Assistant.
|
"""Start Home Assistant.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user