Use enums in rfxtrx (#62039)
This commit is contained in:
parent
18ae4a9420
commit
d5fe0fcee0
1 changed files with 6 additions and 7 deletions
|
@ -6,8 +6,7 @@ import logging
|
||||||
import RFXtrx as rfxtrxmod
|
import RFXtrx as rfxtrxmod
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
DEVICE_CLASS_MOTION,
|
BinarySensorDeviceClass,
|
||||||
DEVICE_CLASS_SMOKE,
|
|
||||||
BinarySensorEntity,
|
BinarySensorEntity,
|
||||||
BinarySensorEntityDescription,
|
BinarySensorEntityDescription,
|
||||||
)
|
)
|
||||||
|
@ -61,23 +60,23 @@ SENSOR_STATUS_OFF = [
|
||||||
SENSOR_TYPES = (
|
SENSOR_TYPES = (
|
||||||
BinarySensorEntityDescription(
|
BinarySensorEntityDescription(
|
||||||
key="X10 Security Motion Detector",
|
key="X10 Security Motion Detector",
|
||||||
device_class=DEVICE_CLASS_MOTION,
|
device_class=BinarySensorDeviceClass.MOTION,
|
||||||
),
|
),
|
||||||
BinarySensorEntityDescription(
|
BinarySensorEntityDescription(
|
||||||
key="KD101 Smoke Detector",
|
key="KD101 Smoke Detector",
|
||||||
device_class=DEVICE_CLASS_SMOKE,
|
device_class=BinarySensorDeviceClass.SMOKE,
|
||||||
),
|
),
|
||||||
BinarySensorEntityDescription(
|
BinarySensorEntityDescription(
|
||||||
key="Visonic Powercode Motion Detector",
|
key="Visonic Powercode Motion Detector",
|
||||||
device_class=DEVICE_CLASS_MOTION,
|
device_class=BinarySensorDeviceClass.MOTION,
|
||||||
),
|
),
|
||||||
BinarySensorEntityDescription(
|
BinarySensorEntityDescription(
|
||||||
key="Alecto SA30 Smoke Detector",
|
key="Alecto SA30 Smoke Detector",
|
||||||
device_class=DEVICE_CLASS_SMOKE,
|
device_class=BinarySensorDeviceClass.SMOKE,
|
||||||
),
|
),
|
||||||
BinarySensorEntityDescription(
|
BinarySensorEntityDescription(
|
||||||
key="RM174RF Smoke Detector",
|
key="RM174RF Smoke Detector",
|
||||||
device_class=DEVICE_CLASS_SMOKE,
|
device_class=BinarySensorDeviceClass.SMOKE,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue