Remove deps from system thing

This commit is contained in:
Julian Stirling 2025-12-16 14:07:40 +00:00
parent 3332bc5e1d
commit 4a72521531

View file

@ -121,9 +121,9 @@ class OpenFlexureSystem(lt.Thing):
return CommandOutput(output=out, error=err)
@lt.action
def get_things_state(self, metadata_getter: lt.deps.GetThingStates) -> Mapping:
def get_things_state(self) -> Mapping:
"""Metadata summarising the current state of all Things in the server."""
return metadata_getter()
return self._thing_server_interface.get_thing_states()
@property
def thing_state(self) -> Mapping[str, Any]: