Add icon translations to Enocean (#111514)
parent
ae930215d4
commit
18e1b3bbbc
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"window_handle": {
|
||||
"default": "mdi:window-open-variant"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -62,7 +62,6 @@ SENSOR_DESC_TEMPERATURE = EnOceanSensorEntityDescription(
|
|||
key=SENSOR_TYPE_TEMPERATURE,
|
||||
name="Temperature",
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
icon="mdi:thermometer",
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
unique_id=lambda dev_id: f"{combine_hex(dev_id)}-{SENSOR_TYPE_TEMPERATURE}",
|
||||
|
@ -72,7 +71,6 @@ SENSOR_DESC_HUMIDITY = EnOceanSensorEntityDescription(
|
|||
key=SENSOR_TYPE_HUMIDITY,
|
||||
name="Humidity",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
icon="mdi:water-percent",
|
||||
device_class=SensorDeviceClass.HUMIDITY,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
unique_id=lambda dev_id: f"{combine_hex(dev_id)}-{SENSOR_TYPE_HUMIDITY}",
|
||||
|
@ -82,7 +80,6 @@ SENSOR_DESC_POWER = EnOceanSensorEntityDescription(
|
|||
key=SENSOR_TYPE_POWER,
|
||||
name="Power",
|
||||
native_unit_of_measurement=UnitOfPower.WATT,
|
||||
icon="mdi:power-plug",
|
||||
device_class=SensorDeviceClass.POWER,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
unique_id=lambda dev_id: f"{combine_hex(dev_id)}-{SENSOR_TYPE_POWER}",
|
||||
|
@ -91,7 +88,7 @@ SENSOR_DESC_POWER = EnOceanSensorEntityDescription(
|
|||
SENSOR_DESC_WINDOWHANDLE = EnOceanSensorEntityDescription(
|
||||
key=SENSOR_TYPE_WINDOWHANDLE,
|
||||
name="WindowHandle",
|
||||
icon="mdi:window-open-variant",
|
||||
translation_key="window_handle",
|
||||
unique_id=lambda dev_id: f"{combine_hex(dev_id)}-{SENSOR_TYPE_WINDOWHANDLE}",
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue