Add online status

This commit is contained in:
sususweet
2025-09-12 00:15:14 +08:00
parent 94c131613c
commit 85365338f4
16 changed files with 350 additions and 631 deletions

View File

@@ -1,5 +1,6 @@
from homeassistant.const import *
from homeassistant.const import Platform, UnitOfTemperature
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
from homeassistant.components.climate.const import PRECISION_HALVES
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
from homeassistant.components.switch import SwitchDeviceClass
@@ -79,7 +80,7 @@ DEVICE_MAPPING = {
"aux_heat": "ptc",
"min_temp": 17,
"max_temp": 30,
"temperature_unit": TEMP_CELSIUS,
"temperature_unit": UnitOfTemperature.CELSIUS,
"precision": PRECISION_HALVES,
}
},