Use new enums in netgear (#61943)

This commit is contained in:
epenet 2021-12-16 12:16:56 +01:00 committed by GitHub
parent 04153c0075
commit 389d9c2c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
"""Support for Netgear routers."""
from homeassistant.components.sensor import (
DEVICE_CLASS_SIGNAL_STRENGTH,
SensorDeviceClass,
SensorEntity,
SensorEntityDescription,
)
@ -25,7 +25,7 @@ SENSOR_TYPES = {
key="signal",
name="signal strength",
native_unit_of_measurement=PERCENTAGE,
device_class=DEVICE_CLASS_SIGNAL_STRENGTH,
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
),
"ssid": SensorEntityDescription(
key="ssid",