Use new enums in netgear_lte (#61955)

pull/62128/head
epenet 2021-12-16 22:42:52 +01:00 committed by GitHub
parent 4bfc3eb22f
commit 890dcfee11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
"""Define possible sensor types."""
from homeassistant.components.binary_sensor import DEVICE_CLASS_CONNECTIVITY
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
from homeassistant.const import (
DATA_MEBIBYTES,
PERCENTAGE,
@ -31,8 +31,8 @@ BINARY_SENSOR_MOBILE_CONNECTED = "mobile_connected"
BINARY_SENSOR_CLASSES = {
"roaming": None,
"wire_connected": DEVICE_CLASS_CONNECTIVITY,
BINARY_SENSOR_MOBILE_CONNECTED: DEVICE_CLASS_CONNECTIVITY,
"wire_connected": BinarySensorDeviceClass.CONNECTIVITY,
BINARY_SENSOR_MOBILE_CONNECTED: BinarySensorDeviceClass.CONNECTIVITY,
}
ALL_SENSORS = list(SENSOR_UNITS)