mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Use new enums in netgear (#61943)
This commit is contained in:
parent
04153c0075
commit
389d9c2c35
@ -1,6 +1,6 @@
|
|||||||
"""Support for Netgear routers."""
|
"""Support for Netgear routers."""
|
||||||
from homeassistant.components.sensor import (
|
from homeassistant.components.sensor import (
|
||||||
DEVICE_CLASS_SIGNAL_STRENGTH,
|
SensorDeviceClass,
|
||||||
SensorEntity,
|
SensorEntity,
|
||||||
SensorEntityDescription,
|
SensorEntityDescription,
|
||||||
)
|
)
|
||||||
@ -25,7 +25,7 @@ SENSOR_TYPES = {
|
|||||||
key="signal",
|
key="signal",
|
||||||
name="signal strength",
|
name="signal strength",
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
device_class=DEVICE_CLASS_SIGNAL_STRENGTH,
|
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
|
||||||
),
|
),
|
||||||
"ssid": SensorEntityDescription(
|
"ssid": SensorEntityDescription(
|
||||||
key="ssid",
|
key="ssid",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user