From b0e095e2e7bac9dd83e6f79ad8db4e225c8ace26 Mon Sep 17 00:00:00 2001 From: ilia Date: Tue, 24 Oct 2023 10:35:32 +0300 Subject: [PATCH] trait and action descriptors --- turtle/equipment/turtle_device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/turtle/equipment/turtle_device.py b/turtle/equipment/turtle_device.py index 0f8c583..8de0663 100644 --- a/turtle/equipment/turtle_device.py +++ b/turtle/equipment/turtle_device.py @@ -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`."""