diff --git a/lib/config.rb b/lib/config.rb index 52df569..c56812d 100644 --- a/lib/config.rb +++ b/lib/config.rb @@ -17,6 +17,8 @@ ].freeze DEFAULTS = { + shelly_gen: 2, + shelly_interval: 5, influx_schema: :http, influx_port: 8086, influx_measurement: 'Consumer', @@ -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