trait and action descriptors
This commit is contained in:
parent
2ed1f00421
commit
b0e095e2e7
@ -15,10 +15,10 @@ class TurtleDevice(SynchronyDevice):
|
|||||||
super().close()
|
super().close()
|
||||||
|
|
||||||
def trait_descriptors(self) -> Collection[TraitDescriptor]:
|
def trait_descriptors(self) -> Collection[TraitDescriptor]:
|
||||||
pass
|
return self.get_descriptors()["traits"]
|
||||||
|
|
||||||
def action_descriptors(self) -> Collection[ActionDescriptor]:
|
def action_descriptors(self) -> Collection[ActionDescriptor]:
|
||||||
pass
|
return self.get_descriptors()["actions"]
|
||||||
|
|
||||||
def __getitem__(self, trait_name: str) -> Optional[Any]:
|
def __getitem__(self, trait_name: str) -> Optional[Any]:
|
||||||
"""Return logical state of trait `trait_name`."""
|
"""Return logical state of trait `trait_name`."""
|
||||||
|
Loading…
Reference in New Issue
Block a user