change processor_temperature icon (#52256)
* change processor_temperature icon to indicate the temperature, using "mdi:thermometer" * add DEVICE_CLASS_TEMPERATURE, * add None for icon * remove Icon from Last boot since it uses the device_class already
This commit is contained in:
parent
42c944ce56
commit
7ce4763784
1 changed files with 3 additions and 2 deletions
|
@ -22,6 +22,7 @@ from homeassistant.const import (
|
|||
DATA_GIBIBYTES,
|
||||
DATA_MEBIBYTES,
|
||||
DATA_RATE_MEGABYTES_PER_SECOND,
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
DEVICE_CLASS_TIMESTAMP,
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
PERCENTAGE,
|
||||
|
@ -72,7 +73,7 @@ SENSOR_TYPES: dict[str, tuple[str, str | None, str | None, str | None, bool]] =
|
|||
),
|
||||
"ipv4_address": ("IPv4 address", "", "mdi:server-network", None, True),
|
||||
"ipv6_address": ("IPv6 address", "", "mdi:server-network", None, True),
|
||||
"last_boot": ("Last boot", None, "mdi:clock", DEVICE_CLASS_TIMESTAMP, False),
|
||||
"last_boot": ("Last boot", None, None, DEVICE_CLASS_TIMESTAMP, False),
|
||||
"load_15m": ("Load (15m)", " ", CPU_ICON, None, False),
|
||||
"load_1m": ("Load (1m)", " ", CPU_ICON, None, False),
|
||||
"load_5m": ("Load (5m)", " ", CPU_ICON, None, False),
|
||||
|
@ -108,8 +109,8 @@ SENSOR_TYPES: dict[str, tuple[str, str | None, str | None, str | None, bool]] =
|
|||
"processor_temperature": (
|
||||
"Processor temperature",
|
||||
TEMP_CELSIUS,
|
||||
CPU_ICON,
|
||||
None,
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
False,
|
||||
),
|
||||
"swap_free": ("Swap free", DATA_MEBIBYTES, "mdi:harddisk", None, False),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue