diff --git a/equipment/turtle_device.py b/equipment/turtle_device.py index fabbf4b..4b6cec9 100644 --- a/equipment/turtle_device.py +++ b/equipment/turtle_device.py @@ -35,11 +35,11 @@ class TurtleDevice(SynchronyDevice): @property def action_descriptors(self): - actions = [(attribute, getattr(t, attribute)) for attribute in dir(t) + actions = [(attribute, getattr(self.turtle, attribute)) for attribute in dir(self.turtle) if (attribute.startswith('_') == False)] self.actions = [TraitDescriptor(*ac) for ac in actions] - return self.acions + return self.actions def read(self, trait_name): collection = self.traits