lib/wizrb/lighting/events/set_brightness_event.rb in wizrb-1.1.2 vs lib/wizrb/lighting/events/set_brightness_event.rb in wizrb-1.2.0
- old
+ new
@@ -1,18 +1,18 @@
# frozen_string_literal: true
-require_relative '../../shared/events/base'
+require_relative "../../shared/events/base"
module Wizrb
module Lighting
module Events
class SetBrightnessEvent < Wizrb::Shared::Events::Base
MIN_VALUE = 10
MAX_VALUE = 100
def initialize(value)
validate!(value)
- super(method: 'setState', params: { dimming: value.to_i })
+ super(method: "setState", params: {dimming: value.to_i})
end
private
def validate!(value)