We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa35c61 commit baa981cCopy full SHA for baa981c
1 file changed
frost_sta_client/model/location.py
@@ -141,11 +141,11 @@ def things(self):
141
@things.setter
142
def things(self, values):
143
if values is None:
144
- self._thing = None
+ self._things = None
145
return
146
if isinstance(values, list) and all(isinstance(th, thing.Thing) for th in values):
147
entity_class = entity_type.EntityTypes['Thing']['class']
148
- self._thing = entity_list.EntityList(entity_class=entity_class, entities=values)
+ self._things = entity_list.EntityList(entity_class=entity_class, entities=values)
149
150
if not isinstance(values, entity_list.EntityList) or \
151
any((not isinstance(th, thing.Thing)) for th in values.entities):
0 commit comments