Migrate Supervisor integration to new entity naming style (#74906)

This commit is contained in:
Franck Nijhof 2022-07-10 22:05:54 +02:00 committed by GitHub
parent c5253d3da0
commit b070bb8ef0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 9 deletions

View file

@ -31,7 +31,7 @@ COMMON_ENTITY_DESCRIPTIONS = (
SensorEntityDescription(
entity_registry_enabled_default=False,
key=ATTR_VERSION_LATEST,
name="Newest Version",
name="Newest version",
),
)
@ -39,7 +39,7 @@ ADDON_ENTITY_DESCRIPTIONS = COMMON_ENTITY_DESCRIPTIONS + (
SensorEntityDescription(
entity_registry_enabled_default=False,
key=ATTR_CPU_PERCENT,
name="CPU Percent",
name="CPU percent",
icon="mdi:cpu-64-bit",
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
@ -47,7 +47,7 @@ ADDON_ENTITY_DESCRIPTIONS = COMMON_ENTITY_DESCRIPTIONS + (
SensorEntityDescription(
entity_registry_enabled_default=False,
key=ATTR_MEMORY_PERCENT,
name="Memory Percent",
name="Memory percent",
icon="mdi:memory",
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,