mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2026-02-11 06:13:49 +00:00
fix: support of custom_timing for T0x17
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from homeassistant.components.switch import SwitchDeviceClass
|
||||
from homeassistant.const import Platform, UnitOfTime, UnitOfArea, UnitOfTemperature
|
||||
from homeassistant.const import Platform, PERCENTAGE, UnitOfTime, UnitOfArea, UnitOfTemperature
|
||||
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
|
||||
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||
|
||||
@@ -22,13 +22,20 @@ DEVICE_MAPPING = {
|
||||
"light_brightness": {
|
||||
"min": 20,
|
||||
"max": 100,
|
||||
"step": 1
|
||||
"step": 1,
|
||||
"unit_of_measurement": PERCENTAGE
|
||||
},
|
||||
"custom_height": {
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"step": 10,
|
||||
"translation_key": "laundry_height",
|
||||
},
|
||||
"custom_timing": {
|
||||
"min": 0,
|
||||
"max": 180,
|
||||
"step": 5,
|
||||
"unit_of_measurement": UnitOfTime.MINUTES
|
||||
}
|
||||
},
|
||||
Platform.SWITCH: {
|
||||
|
||||
@@ -2052,6 +2052,9 @@
|
||||
}
|
||||
},
|
||||
"number": {
|
||||
"custom_timing": {
|
||||
"name": "Light Off Timer"
|
||||
},
|
||||
"keep_warm_time": {
|
||||
"name": "Keep Warm Time"
|
||||
},
|
||||
|
||||
@@ -2185,6 +2185,9 @@
|
||||
}
|
||||
},
|
||||
"number": {
|
||||
"custom_timing": {
|
||||
"name": "延时关灯"
|
||||
},
|
||||
"keep_warm_time": {
|
||||
"name": "保温时间"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user