Use DEVICE_CLASS_MOTION in various integrations (#39962)
This commit is contained in:
parent
02cb592917
commit
e55035b2f9
15 changed files with 59 additions and 31 deletions
|
@ -4,6 +4,7 @@ import logging
|
|||
import pywink
|
||||
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_MOTION,
|
||||
DEVICE_CLASS_OCCUPANCY,
|
||||
DEVICE_CLASS_OPENING,
|
||||
DEVICE_CLASS_SMOKE,
|
||||
|
@ -24,7 +25,7 @@ SENSOR_TYPES = {
|
|||
"co_detected": "gas",
|
||||
"liquid_detected": "moisture",
|
||||
"loudness": DEVICE_CLASS_SOUND,
|
||||
"motion": "motion",
|
||||
"motion": DEVICE_CLASS_MOTION,
|
||||
"noise": DEVICE_CLASS_SOUND,
|
||||
"opened": DEVICE_CLASS_OPENING,
|
||||
"presence": DEVICE_CLASS_OCCUPANCY,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue