Add motion binary sensor (#44445)

pull/44675/head
Maciej Bieniek 2020-12-31 00:02:56 +01:00 committed by GitHub
parent da66a4e933
commit 687f90e164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ from homeassistant.components.binary_sensor import (
DEVICE_CLASS_CONNECTIVITY,
DEVICE_CLASS_GAS,
DEVICE_CLASS_MOISTURE,
DEVICE_CLASS_MOTION,
DEVICE_CLASS_OPENING,
DEVICE_CLASS_POWER,
DEVICE_CLASS_PROBLEM,
@ -70,6 +71,9 @@ SENSORS = {
default_enabled=False,
removal_condition=is_momentary_input,
),
("sensor", "motion"): BlockAttributeDescription(
name="Motion", device_class=DEVICE_CLASS_MOTION
),
}
REST_SENSORS = {