Restricted temperature units for Celsius and Fahrenheit to the standardized units (#22108)
This commit is contained in:
1 parent
7807b40925
commit
0466e43478
2 files changed
+9
-6
No files matched your search
@@ -43,8 +43,8 @@ class LcnVariableSensor(LcnDevice):
|
||||
super().__init__(config, address_connection)
|
||||
|
||||
self.variable = self.pypck.lcn_defs.Var[config[CONF_SOURCE]]
|
||||
self.unit = self.pypck.lcn_defs.VarUnit[
|
||||
config[CONF_UNIT_OF_MEASUREMENT]]
|
||||
self.unit = self.pypck.lcn_defs.VarUnit.parse(
|
||||
config[CONF_UNIT_OF_MEASUREMENT])
|
||||
|
||||
self._value = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user