Remove diagnostic category and dead translation key from pac sensor (#172548)

This commit is contained in:
mhuiskes
2026-05-29 12:51:17 +02:00
committed by GitHub
parent 9d3bb346e9
commit accebd7f38
2 changed files with 3 additions and 5 deletions
@@ -11,7 +11,7 @@ from homeassistant.components.sensor import (
SensorEntityDescription,
SensorStateClass,
)
from homeassistant.const import EntityCategory, UnitOfEnergy, UnitOfPower
from homeassistant.const import UnitOfEnergy, UnitOfPower
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
@@ -29,10 +29,8 @@ class ZeversolarEntityDescription(SensorEntityDescription):
SENSOR_TYPES = (
ZeversolarEntityDescription(
key="pac",
translation_key="pac",
native_unit_of_measurement=UnitOfPower.WATT,
state_class=SensorStateClass.MEASUREMENT,
entity_category=EntityCategory.DIAGNOSTIC,
device_class=SensorDeviceClass.POWER,
value_fn=lambda data: data.pac,
),
@@ -72,7 +72,7 @@
'device_id': <ANY>,
'disabled_by': None,
'domain': 'sensor',
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
'entity_category': None,
'entity_id': 'sensor.zeversolar_sensor_power',
'has_entity_name': True,
'hidden_by': None,
@@ -94,7 +94,7 @@
'previous_unique_id': None,
'suggested_object_id': None,
'supported_features': 0,
'translation_key': 'pac',
'translation_key': None,
'unique_id': '123456778_pac',
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
})