mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Add motion binary sensor (#44445)
This commit is contained in:
parent
da66a4e933
commit
687f90e164
@ -3,6 +3,7 @@ from homeassistant.components.binary_sensor import (
|
|||||||
DEVICE_CLASS_CONNECTIVITY,
|
DEVICE_CLASS_CONNECTIVITY,
|
||||||
DEVICE_CLASS_GAS,
|
DEVICE_CLASS_GAS,
|
||||||
DEVICE_CLASS_MOISTURE,
|
DEVICE_CLASS_MOISTURE,
|
||||||
|
DEVICE_CLASS_MOTION,
|
||||||
DEVICE_CLASS_OPENING,
|
DEVICE_CLASS_OPENING,
|
||||||
DEVICE_CLASS_POWER,
|
DEVICE_CLASS_POWER,
|
||||||
DEVICE_CLASS_PROBLEM,
|
DEVICE_CLASS_PROBLEM,
|
||||||
@ -70,6 +71,9 @@ SENSORS = {
|
|||||||
default_enabled=False,
|
default_enabled=False,
|
||||||
removal_condition=is_momentary_input,
|
removal_condition=is_momentary_input,
|
||||||
),
|
),
|
||||||
|
("sensor", "motion"): BlockAttributeDescription(
|
||||||
|
name="Motion", device_class=DEVICE_CLASS_MOTION
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
REST_SENSORS = {
|
REST_SENSORS = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user