FraunhoferIOSB / FROST-Python-Client

Python Client Library for FROST.
GNU Lesser General Public License v3.0
8 stars 8 forks source link

Comparison of datastreams fails #34

Open securedimensions opened 5 months ago

securedimensions commented 5 months ago

Description

The comparison of a Datastream and Thing.get_datastream().query().list().entities[0] fails.

Reproducing the error

...
ds1 = fsc.Datastream('Air Temperature', 'Air temperature measured with the FT-0310 Weather Station',
                        'http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement')
ds1.observed_property = temp
ds1.unit_of_measurement = celsius
ds1.thing = thing
ds1.sensor = sensor
service.create(ds1)

ds2 = thing.get_datastreams().query().list()

if ds1 != ds2.entities[0]:
    print("datastreams are not equal")
else:
    print("datastreams are equal")