From b0f5e7dabfb2a3db8087c8102b15b4e3eeea6448 Mon Sep 17 00:00:00 2001 From: Robert Hillis Date: Wed, 15 Dec 2021 19:07:12 -0500 Subject: [PATCH] Use Enums in zoneminder (#61975) --- homeassistant/components/zoneminder/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/zoneminder/binary_sensor.py b/homeassistant/components/zoneminder/binary_sensor.py index 73d6877ef2d..0bcd9031188 100644 --- a/homeassistant/components/zoneminder/binary_sensor.py +++ b/homeassistant/components/zoneminder/binary_sensor.py @@ -1,6 +1,6 @@ """Support for ZoneMinder binary sensors.""" from homeassistant.components.binary_sensor import ( - DEVICE_CLASS_CONNECTIVITY, + BinarySensorDeviceClass, BinarySensorEntity, ) @@ -38,7 +38,7 @@ class ZMAvailabilitySensor(BinarySensorEntity): @property def device_class(self): """Return the class of this device, from component DEVICE_CLASSES.""" - return DEVICE_CLASS_CONNECTIVITY + return BinarySensorDeviceClass.CONNECTIVITY def update(self): """Update the state of this sensor (availability of ZoneMinder)."""