Add category diagnostic to Tibber signal sensor (#57840)

This commit is contained in:
Daniel Hjelseth Høyer 2021-10-17 19:25:49 +02:00 committed by GitHub
parent 4aadb848e1
commit dd2d708cb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,7 @@ from homeassistant.const import (
ELECTRIC_CURRENT_AMPERE,
ELECTRIC_POTENTIAL_VOLT,
ENERGY_KILO_WATT_HOUR,
ENTITY_CATEGORY_DIAGNOSTIC,
EVENT_HOMEASSISTANT_STOP,
PERCENTAGE,
POWER_WATT,
@ -172,6 +173,7 @@ RT_SENSORS: tuple[SensorEntityDescription, ...] = (
device_class=DEVICE_CLASS_SIGNAL_STRENGTH,
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS,
state_class=STATE_CLASS_MEASUREMENT,
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
),
SensorEntityDescription(
key="accumulatedReward",