mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Use new enums in netgear (#61943)
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user