We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c07a58d commit 619b899Copy full SHA for 619b899
lib/openhab/core/items/semantics.rb
@@ -491,6 +491,7 @@ def self.const_missing(sym)
491
logger.trace("const missing, performing Semantics Lookup for: #{sym}")
492
# @deprecated OH3.4 - the Property tag had an ID of "MeasurementProperty" in OH3.4. This was corrected in OH4.
493
# make sure we compare against pre-release versions
494
+ target_sym = sym
495
if sym == :Property && Gem::Version.new(Core::VERSION) < Gem::Version.new("4.0.0.M1")
496
sym = :MeasurementProperty
497
end
@@ -499,7 +500,7 @@ def self.const_missing(sym)
499
500
&.then do |tag|
501
tag = tag.ruby_class
502
tag.singleton_class.include(TagClassMethods)
- const_set(sym, tag)
503
+ const_set(target_sym, tag)
504
505
506
0 commit comments