mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Clean up entity descriptions in Tuya (#96847)
This commit is contained in:
parent
d8c989f732
commit
1422a4f8c6
@ -53,7 +53,7 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
|
||||
key=DPCode.GAS_SENSOR_STATE,
|
||||
name="Gas",
|
||||
icon="mdi:gas-cylinder",
|
||||
device_class=BinarySensorDeviceClass.SAFETY,
|
||||
device_class=BinarySensorDeviceClass.GAS,
|
||||
on_value="alarm",
|
||||
),
|
||||
TuyaBinarySensorEntityDescription(
|
||||
|
@ -9,7 +9,7 @@ from homeassistant.components.number import (
|
||||
NumberEntityDescription,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import EntityCategory, UnitOfTime
|
||||
from homeassistant.const import PERCENTAGE, EntityCategory, UnitOfTime
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
@ -264,14 +264,16 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
|
||||
"szjqr": (
|
||||
NumberEntityDescription(
|
||||
key=DPCode.ARM_DOWN_PERCENT,
|
||||
name="Move down %",
|
||||
name="Move down",
|
||||
icon="mdi:arrow-down-bold",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
),
|
||||
NumberEntityDescription(
|
||||
key=DPCode.ARM_UP_PERCENT,
|
||||
name="Move up %",
|
||||
name="Move up",
|
||||
icon="mdi:arrow-up-bold",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
),
|
||||
NumberEntityDescription(
|
||||
|
Loading…
x
Reference in New Issue
Block a user