From b5659bc12b11f1e5c08a1c7ea1110f81f05f1619 Mon Sep 17 00:00:00 2001 From: Georg Ledermann Date: Mon, 25 Nov 2024 05:55:05 +0100 Subject: [PATCH] Code cleanup --- lib/config.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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