Restricted temperature units for Celsius and Fahrenheit to the standardized units (#22108)

This commit is contained in:
Andre Lengwenus authored and Daniel Høyer Iversen committed 2019-03-16 16:31:58 +01:00
1 parent 7807b40925
commit 0466e43478
2 files changed
+9 -6

No files matched your search

+2 -2
View File
@@ -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