Use sound, vibration and safety device class constants in various integrations (#39952)
* Use sound, vibration and safety device class constants in various integrations * Fix wrong imports
This commit is contained in:
1 parent
ee5c1ea3f7
commit
ac2e290d97
7 files changed
+36
-19
No files matched your search
@@ -2,7 +2,10 @@
|
||||
from itertools import chain
|
||||
import logging
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorEntity
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_SOUND,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
from homeassistant.const import CONF_MONITORED_CONDITIONS
|
||||
|
||||
from . import CONF_BINARY_SENSORS, DATA_NEST, DATA_NEST_CONFIG, NestSensorDevice
|
||||
@@ -20,7 +23,7 @@ CLIMATE_BINARY_TYPES = {
|
||||
|
||||
CAMERA_BINARY_TYPES = {
|
||||
"motion_detected": "motion",
|
||||
"sound_detected": "sound",
|
||||
"sound_detected": DEVICE_CLASS_SOUND,
|
||||
"person_detected": "occupancy",
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user