Fix minor issues in Homee (#137239)
parent
0034055ac8
commit
48184e742a
|
@ -1,6 +1,7 @@
|
||||||
"""Constants for the homee integration."""
|
"""Constants for the homee integration."""
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
DEGREE,
|
||||||
LIGHT_LUX,
|
LIGHT_LUX,
|
||||||
PERCENTAGE,
|
PERCENTAGE,
|
||||||
REVOLUTIONS_PER_MINUTE,
|
REVOLUTIONS_PER_MINUTE,
|
||||||
|
@ -32,6 +33,7 @@ HOMEE_UNIT_TO_HA_UNIT = {
|
||||||
"W": UnitOfPower.WATT,
|
"W": UnitOfPower.WATT,
|
||||||
"m/s": UnitOfSpeed.METERS_PER_SECOND,
|
"m/s": UnitOfSpeed.METERS_PER_SECOND,
|
||||||
"km/h": UnitOfSpeed.KILOMETERS_PER_HOUR,
|
"km/h": UnitOfSpeed.KILOMETERS_PER_HOUR,
|
||||||
|
"°": DEGREE,
|
||||||
"°F": UnitOfTemperature.FAHRENHEIT,
|
"°F": UnitOfTemperature.FAHRENHEIT,
|
||||||
"°C": UnitOfTemperature.CELSIUS,
|
"°C": UnitOfTemperature.CELSIUS,
|
||||||
"K": UnitOfTemperature.KELVIN,
|
"K": UnitOfTemperature.KELVIN,
|
||||||
|
@ -51,7 +53,7 @@ OPEN_CLOSE_MAP_REVERSED = {
|
||||||
0.0: "closed",
|
0.0: "closed",
|
||||||
1.0: "open",
|
1.0: "open",
|
||||||
2.0: "partial",
|
2.0: "partial",
|
||||||
3.0: "cosing",
|
3.0: "closing",
|
||||||
4.0: "opening",
|
4.0: "opening",
|
||||||
}
|
}
|
||||||
WINDOW_MAP = {
|
WINDOW_MAP = {
|
||||||
|
|
Loading…
Reference in New Issue