We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9557077 commit 793371aCopy full SHA for 793371a
1 file changed
frost_sta_client/model/multi_datastream.py
@@ -299,7 +299,7 @@ def __getstate__(self):
299
data['Sensor'] = self.sensor
300
if self.properties is not None and self.properties != {}:
301
data['properties'] = self.properties
302
- if len(self.unit_of_measurements) > 0:
+ if self.unit_of_measurements is not None and len(self.unit_of_measurements) > 0:
303
data['unitOfMeasurements'] = self.unit_of_measurements
304
if len(self.multi_observation_data_types) > 0:
305
data['multiObservationDataTypes'] = self.multi_observation_data_types
0 commit comments