diff --git a/lewis/devices/__init__.py b/lewis/devices/__init__.py index 0cf5dc32..c7898125 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``. @@ -198,7 +198,7 @@ def _override_data(self, overrides: dict[str, float] | None) -> None: self.log.debug("Trying to override initial data (%s=%s)", name, val) if name not in dir(self): raise AttributeError( - "Can not override non-existing attribute" "'{}' of class '{}'.".format( + "Can not override non-existing attribute'{}' of class '{}'.".format( name, type(self).__name__ ) )