mirror of
https://github.com/home-assistant/core.git
synced 2025-05-20 22:07:08 +00:00
Use enums in vilfo (#61995)
This commit is contained in:
parent
9d66dd35cc
commit
06c1949d2f
@ -3,8 +3,8 @@ from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
from homeassistant.components.sensor import SensorEntityDescription
|
||||
from homeassistant.const import DEVICE_CLASS_TIMESTAMP, PERCENTAGE
|
||||
from homeassistant.components.sensor import SensorDeviceClass, SensorEntityDescription
|
||||
from homeassistant.const import PERCENTAGE
|
||||
|
||||
DOMAIN = "vilfo"
|
||||
|
||||
@ -44,6 +44,6 @@ SENSOR_TYPES: tuple[VilfoSensorEntityDescription, ...] = (
|
||||
name="Boot time",
|
||||
icon="mdi:timer-outline",
|
||||
api_key=ATTR_API_DATA_FIELD_BOOT_TIME,
|
||||
device_class=DEVICE_CLASS_TIMESTAMP,
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user