Skip to content

Commit

Permalink
sensor tags in device data
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Mar 8, 2024
1 parent 5b1e73f commit 2e61d2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def formatted_data
measurement: sensor.measurement.for_sensor_json,
value: (data ? data["#{sensor.id}"] : nil),
prev_value: (old_data ? old_data["#{sensor.id}"] : nil),
last_reading_at: component.last_reading_at
last_reading_at: component.last_reading_at,
tags: sensor.tags
)
s[:sensors] << sa
end
Expand Down

0 comments on commit 2e61d2b

Please sign in to comment.