From 890dcfee11a9942a83132e2f9dfe0b1f7427539c Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 16 Dec 2021 22:42:52 +0100 Subject: [PATCH] Use new enums in netgear_lte (#61955) --- homeassistant/components/netgear_lte/sensor_types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/netgear_lte/sensor_types.py b/homeassistant/components/netgear_lte/sensor_types.py index 644fe35c8c3..45cfb873ef8 100644 --- a/homeassistant/components/netgear_lte/sensor_types.py +++ b/homeassistant/components/netgear_lte/sensor_types.py @@ -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)