Add motion binary sensor (#44445)

pull/44881/head
Maciej Bieniek 2020-12-31 00:02:56 +01:00 committed by Franck Nijhof
parent e65903822d
commit 8a689a0105
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
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 = {