@@ -155,10 +155,15 @@ def update(
155155 name : str = ...,
156156 description : str = ...,
157157 thing : Union ["Thing" , UUID , str ] = ...,
158+ thing_id : UUID = ...,
158159 sensor : Union ["Sensor" , UUID , str ] = ...,
160+ sensor_id : UUID = ...,
159161 observed_property : Union ["ObservedProperty" , UUID , str ] = ...,
162+ observed_property_id : UUID = ...,
160163 processing_level : Union ["ProcessingLevel" , UUID , str ] = ...,
164+ processing_level_id : UUID = ...,
161165 unit : Union ["Unit" , UUID , str ] = ...,
166+ unit_id : UUID = ...,
162167 observation_type : str = ...,
163168 result_type : str = ...,
164169 sampled_medium : str = ...,
@@ -186,11 +191,15 @@ def update(
186191 body = {
187192 "name" : name ,
188193 "description" : description ,
189- "thingId" : normalize_uuid (thing ),
190- "sensorId" : normalize_uuid (sensor ),
191- "observedPropertyId" : normalize_uuid (observed_property ),
192- "processingLevelId" : normalize_uuid (processing_level ),
193- "unitId" : normalize_uuid (unit ),
194+ "thingId" : normalize_uuid (thing if thing is not ... else thing_id ),
195+ "sensorId" : normalize_uuid (sensor if sensor is not ... else sensor_id ),
196+ "observedPropertyId" : normalize_uuid (
197+ observed_property if observed_property is not ... else observed_property_id
198+ ),
199+ "processingLevelId" : normalize_uuid (
200+ processing_level if processing_level is not ... else processing_level_id
201+ ),
202+ "unitId" : normalize_uuid (unit if unit is not ... else unit_id ),
194203 "observationType" : observation_type ,
195204 "resultType" : result_type ,
196205 "sampledMedium" : sampled_medium ,
0 commit comments