trait and action descriptors

This commit is contained in:
ilia 2023-10-24 10:35:32 +03:00
parent 2ed1f00421
commit b0e095e2e7

View File

@ -15,10 +15,10 @@ class TurtleDevice(SynchronyDevice):
super().close()
def trait_descriptors(self) -> Collection[TraitDescriptor]:
pass
return self.get_descriptors()["traits"]
def action_descriptors(self) -> Collection[ActionDescriptor]:
pass
return self.get_descriptors()["actions"]
def __getitem__(self, trait_name: str) -> Optional[Any]:
"""Return logical state of trait `trait_name`."""