mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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,
|
key=DPCode.GAS_SENSOR_STATE,
|
||||||
name="Gas",
|
name="Gas",
|
||||||
icon="mdi:gas-cylinder",
|
icon="mdi:gas-cylinder",
|
||||||
device_class=BinarySensorDeviceClass.SAFETY,
|
device_class=BinarySensorDeviceClass.GAS,
|
||||||
on_value="alarm",
|
on_value="alarm",
|
||||||
),
|
),
|
||||||
TuyaBinarySensorEntityDescription(
|
TuyaBinarySensorEntityDescription(
|
||||||
|
@ -9,7 +9,7 @@ from homeassistant.components.number import (
|
|||||||
NumberEntityDescription,
|
NumberEntityDescription,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
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.core import HomeAssistant, callback
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
@ -264,14 +264,16 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
|
|||||||
"szjqr": (
|
"szjqr": (
|
||||||
NumberEntityDescription(
|
NumberEntityDescription(
|
||||||
key=DPCode.ARM_DOWN_PERCENT,
|
key=DPCode.ARM_DOWN_PERCENT,
|
||||||
name="Move down %",
|
name="Move down",
|
||||||
icon="mdi:arrow-down-bold",
|
icon="mdi:arrow-down-bold",
|
||||||
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
),
|
),
|
||||||
NumberEntityDescription(
|
NumberEntityDescription(
|
||||||
key=DPCode.ARM_UP_PERCENT,
|
key=DPCode.ARM_UP_PERCENT,
|
||||||
name="Move up %",
|
name="Move up",
|
||||||
icon="mdi:arrow-up-bold",
|
icon="mdi:arrow-up-bold",
|
||||||
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
),
|
),
|
||||||
NumberEntityDescription(
|
NumberEntityDescription(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user