MastodonC / kixi.hecuba

Eclipse Public License 1.0
36 stars 5 forks source link

Remove `nil`s from the sensors readings #660

Closed Eleonore9 closed 8 years ago

Eleonore9 commented 8 years ago

While testing I had a 500 error due to a nil in my readings:

{:description device007-2, :entity_id 0209d8ca-36f1-45ee-8fdb-d17a69473d6a, :privacy , 
:readings [{:type electricityConsumption, :period CUMULATIVE, :unit Kw, 
:sensor_id b192319d-232c-4a3f-a04c-595005f1f169} {:type electricityConsumption_differenceSeries, 
:period PULSE, :unit Kw, :sensor_id 5e6778dc-692a-41e9-b986-c50496e6f086, :synthetic true} 
nil]}
otfrom commented 8 years ago

:shipit: