Skip to content

Commit

Permalink
Initialize @switch_enabled to avoid warning (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer authored Dec 15, 2023
1 parent b0093b5 commit e27a7e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/openhab/dsl/sitemaps/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def initialize(type, switch: nil, frequency: nil, **kwargs)

@switch = switch
@frequency = frequency
@switch_enabled = nil
end

# (see #switch=)
Expand Down

0 comments on commit e27a7e5

Please sign in to comment.