Use DEVICE_CLASS_MOTION in various integrations (#39962)
This commit is contained in:
1 parent
02cb592917
commit
e55035b2f9
15 files changed
+59
-31
No files matched your search
@@ -4,7 +4,11 @@ import logging
|
||||
import haffmpeg.sensor as ffmpeg_sensor
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, BinarySensorEntity
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_MOTION,
|
||||
PLATFORM_SCHEMA,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
from homeassistant.components.ffmpeg import (
|
||||
CONF_EXTRA_ARGUMENTS,
|
||||
CONF_INITIAL_STATE,
|
||||
@@ -119,4 +123,4 @@ class FFmpegMotion(FFmpegBinarySensor):
|
||||
@property
|
||||
def device_class(self):
|
||||
"""Return the class of this sensor, from DEVICE_CLASSES."""
|
||||
return "motion"
|
||||
return DEVICE_CLASS_MOTION
|
||||
Reference in new issue
Block a user