mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Add slots to the StateMachine class (#95849)
This commit is contained in:
@@ -1410,6 +1410,8 @@ class State:
|
||||
class StateMachine:
|
||||
"""Helper class that tracks the state of different entities."""
|
||||
|
||||
__slots__ = ("_states", "_reservations", "_bus", "_loop")
|
||||
|
||||
def __init__(self, bus: EventBus, loop: asyncio.events.AbstractEventLoop) -> None:
|
||||
"""Initialize state machine."""
|
||||
self._states: dict[str, State] = {}
|
||||
|
||||
Reference in New Issue
Block a user