From 13ce61bf5caece952337bfe7fae66d6ed1443ee7 Mon Sep 17 00:00:00 2001 From: Jack Harper Date: Mon, 13 Jan 2025 13:32:04 +0000 Subject: [PATCH] Correct type hint for _get_initial_state() --- 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..afdff56f 100644 --- a/lewis/devices/__init__.py +++ b/lewis/devices/__init__.py @@ -139,7 +139,7 @@ def _get_state_handlers(self) -> dict[str, State]: "_get_state_handlers must be implemented in a StateMachineDevice." ) - def _get_initial_state(self) -> State: + def _get_initial_state(self) -> str: """ Implement this method to return the initial state of the internal state machine. The default implementation raises a ``NotImplementedError``.