Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Nov 25, 2024
1 parent 42217d2 commit b5659bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
].freeze

DEFAULTS = {
shelly_gen: 2,
shelly_interval: 5,
influx_schema: :http,
influx_port: 8086,
influx_measurement: 'Consumer',
Expand Down Expand Up @@ -58,9 +60,6 @@ def set_defaults
DEFAULTS.each do |key, value|
self[key] ||= value
end

self[:shelly_interval] ||= 5
self[:shelly_gen] ||= 2
end

def limit_interval
Expand Down

0 comments on commit b5659bc

Please sign in to comment.