Use DEVICE_CLASS_MOTION in various integrations (#39962)

This commit is contained in:
springstan authored and GitHub committed 2020-09-12 16:20:30 -05:00
1 parent 02cb592917
commit e55035b2f9
15 files changed
+59 -31

No files matched your search

@@ -4,6 +4,7 @@ from typing import Optional, Sequence
from pysmartthings import Attribute, Capability
from homeassistant.components.binary_sensor import (
DEVICE_CLASS_MOTION,
DEVICE_CLASS_OPENING,
DEVICE_CLASS_PRESENCE,
DEVICE_CLASS_PROBLEM,
@@ -29,7 +30,7 @@ ATTRIB_TO_CLASS = {
Attribute.acceleration: "moving",
Attribute.contact: DEVICE_CLASS_OPENING,
Attribute.filter_status: DEVICE_CLASS_PROBLEM,
Attribute.motion: "motion",
Attribute.motion: DEVICE_CLASS_MOTION,
Attribute.presence: DEVICE_CLASS_PRESENCE,
Attribute.sound: DEVICE_CLASS_SOUND,
Attribute.tamper: DEVICE_CLASS_PROBLEM,