From 27f1e701a43c533dda1f43688509003f339d57fb Mon Sep 17 00:00:00 2001 From: Jack Harper Date: Mon, 13 Jan 2025 13:50:20 +0000 Subject: [PATCH] fix _get_transition_handlers! --- lewis/devices/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lewis/devices/__init__.py b/lewis/devices/__init__.py index 0cf5dc32..dd75a6a1 100644 --- a/lewis/devices/__init__.py +++ b/lewis/devices/__init__.py @@ -148,7 +148,7 @@ def _get_initial_state(self) -> State: """ raise NotImplementedError("_get_initial_state must be implemented in a StateMachineDevice.") - def _get_transition_handlers(self) -> dict[tuple[State, State], Callable[[], bool]]: + def _get_transition_handlers(self) -> dict[tuple[str, str], Callable[[], bool]]: """ Implement this method to return transition handlers for the internal state machine. The keys should be (state, state)-tuples and the values functions that return true