From bc61c5f49e3ea160c41c96249c71e9f3d570ea37 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 15 Dec 2021 12:06:16 +0100 Subject: [PATCH] Use new BinarySensorDeviceClass in keenetic_ndms2 (#61867) Co-authored-by: epenet --- homeassistant/components/keenetic_ndms2/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/keenetic_ndms2/binary_sensor.py b/homeassistant/components/keenetic_ndms2/binary_sensor.py index aa46c0fab02..351f3f66875 100644 --- a/homeassistant/components/keenetic_ndms2/binary_sensor.py +++ b/homeassistant/components/keenetic_ndms2/binary_sensor.py @@ -1,6 +1,6 @@ """The Keenetic Client class.""" from homeassistant.components.binary_sensor import ( - DEVICE_CLASS_CONNECTIVITY, + BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.config_entries import ConfigEntry @@ -23,7 +23,7 @@ async def async_setup_entry( class RouterOnlineBinarySensor(BinarySensorEntity): """Representation router connection status.""" - _attr_device_class = DEVICE_CLASS_CONNECTIVITY + _attr_device_class = BinarySensorDeviceClass.CONNECTIVITY _attr_should_poll = False def __init__(self, router: KeeneticRouter) -> None: