mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Use new BinarySensorDeviceClass enum in egardia (#61378)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
393107c855
commit
9f9e2db510
@ -1,7 +1,6 @@
|
||||
"""Interfaces with Egardia/Woonveilig alarm control panel."""
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_MOTION,
|
||||
DEVICE_CLASS_OPENING,
|
||||
BinarySensorDeviceClass,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
from homeassistant.const import STATE_OFF, STATE_ON
|
||||
@ -9,9 +8,9 @@ from homeassistant.const import STATE_OFF, STATE_ON
|
||||
from . import ATTR_DISCOVER_DEVICES, EGARDIA_DEVICE
|
||||
|
||||
EGARDIA_TYPE_TO_DEVICE_CLASS = {
|
||||
"IR Sensor": DEVICE_CLASS_MOTION,
|
||||
"Door Contact": DEVICE_CLASS_OPENING,
|
||||
"IR": DEVICE_CLASS_MOTION,
|
||||
"IR Sensor": BinarySensorDeviceClass.MOTION,
|
||||
"Door Contact": BinarySensorDeviceClass.OPENING,
|
||||
"IR": BinarySensorDeviceClass.MOTION,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user