Skip to content

Commit

Permalink
chore(place area management): fix ameba warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Aug 2, 2021
1 parent 7a95c18 commit fb7cccd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/place/area_management.cr
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,9 @@ class Place::AreaManagement < PlaceOS::Driver
end
end

levels.each do |level, sensors|
sensor = sensors.first

levels.each do |level, the_sensors|
self["#{level}:sensors"] = {
value: sensors,
value: the_sensors,
ts_hint: "complex",
ts_map: {
x: "xloc",
Expand Down

0 comments on commit fb7cccd

Please sign in to comment.