Open securedimensions opened 5 months ago
The comparion of two datastreams fails because the property unitOfMeasurement has no __eq__ operator and so the comparion returns false.
unitOfMeasurement
__eq__
false
import frost_sta_client as fsc c1 = fsc.UnitOfMeasurement('Celsius', 'C', 'https://qudt.org/vocab/unit/DEG_C') c2 = fsc.UnitOfMeasurement('Celsius', 'C', 'https://qudt.org/vocab/unit/DEG_C') if c1 != c2: print("unitOfMeasurement are not equal") else: print("unitOfMeasurement are equal")
Description
The comparion of two datastreams fails because the property
unitOfMeasurement
has no__eq__
operator and so the comparion returnsfalse
.Reproducing the error