feat: add more device support

This commit is contained in:
sususweet
2025-09-24 18:20:58 +08:00
parent 2f88658fda
commit 39f88365e5
11 changed files with 161 additions and 23 deletions

View File

@@ -0,0 +1,16 @@
from homeassistant.const import Platform, UnitOfTemperature, PRECISION_HALVES
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
# from homeassistant.components.binary_sensor import BinarySensorDeviceClass
from homeassistant.components.switch import SwitchDeviceClass
DEVICE_MAPPING = {
"default": {
"rationale": ["off", "on"],
"queries": [{}],
"centralized": [],
"entities": {
Platform.SWITCH: {},
Platform.SENSOR: {}
}
}
}