From dff77e39cedf4e17567ef786309c9a1a8418a610 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 8 Dec 2021 22:09:19 +0100 Subject: [PATCH] Use new BinarySensorDeviceClass enum in axis (#61291) Co-authored-by: epenet --- homeassistant/components/axis/binary_sensor.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/axis/binary_sensor.py b/homeassistant/components/axis/binary_sensor.py index 7ef3838b1f7..01cfb834f26 100644 --- a/homeassistant/components/axis/binary_sensor.py +++ b/homeassistant/components/axis/binary_sensor.py @@ -17,10 +17,7 @@ from axis.event_stream import ( ) from homeassistant.components.binary_sensor import ( - DEVICE_CLASS_CONNECTIVITY, - DEVICE_CLASS_LIGHT, - DEVICE_CLASS_MOTION, - DEVICE_CLASS_SOUND, + BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.core import callback @@ -32,10 +29,10 @@ from .axis_base import AxisEventBase from .const import DOMAIN as AXIS_DOMAIN DEVICE_CLASS = { - CLASS_INPUT: DEVICE_CLASS_CONNECTIVITY, - CLASS_LIGHT: DEVICE_CLASS_LIGHT, - CLASS_MOTION: DEVICE_CLASS_MOTION, - CLASS_SOUND: DEVICE_CLASS_SOUND, + CLASS_INPUT: BinarySensorDeviceClass.CONNECTIVITY, + CLASS_LIGHT: BinarySensorDeviceClass.LIGHT, + CLASS_MOTION: BinarySensorDeviceClass.MOTION, + CLASS_SOUND: BinarySensorDeviceClass.SOUND, }