Use new EntityCategory enum in Tibber (#61279)

This commit is contained in:
Daniel Hjelseth Høyer
2021-12-08 22:04:11 +01:00
committed by GitHub
parent c893ad80e4
commit eae1e669d0
+2 -3
View File
@@ -18,7 +18,6 @@ from homeassistant.const import (
ELECTRIC_CURRENT_AMPERE,
ELECTRIC_POTENTIAL_VOLT,
ENERGY_KILO_WATT_HOUR,
ENTITY_CATEGORY_DIAGNOSTIC,
EVENT_HOMEASSISTANT_STOP,
PERCENTAGE,
POWER_WATT,
@@ -28,7 +27,7 @@ from homeassistant.core import callback
from homeassistant.exceptions import PlatformNotReady
from homeassistant.helpers import update_coordinator
from homeassistant.helpers.device_registry import async_get as async_get_dev_reg
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.entity import DeviceInfo, EntityCategory
from homeassistant.helpers.entity_registry import async_get as async_get_entity_reg
from homeassistant.util import Throttle, dt as dt_util
@@ -165,7 +164,7 @@ RT_SENSORS: tuple[SensorEntityDescription, ...] = (
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS,
state_class=SensorStateClass.MEASUREMENT,
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
entity_category=EntityCategory.DIAGNOSTIC,
),
SensorEntityDescription(
key="accumulatedReward",