Use enums in vilfo (#61995)

pull/62014/head^2
Robert Hillis 2021-12-16 03:23:54 -05:00 committed by GitHub
parent 9d66dd35cc
commit 06c1949d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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,
),
)