Use opening and occupancy device class in various integrations (#39965)
This commit is contained in:
parent
4c0f075d6a
commit
cee96ae207
14 changed files with 62 additions and 25 deletions
|
@ -1,7 +1,10 @@
|
|||
"""Support for the for Danfoss Air HRV binary sensors."""
|
||||
from pydanfossair.commands import ReadCommand
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorEntity
|
||||
from homeassistant.components.binary_sensor import (
|
||||
DEVICE_CLASS_OPENING,
|
||||
BinarySensorEntity,
|
||||
)
|
||||
|
||||
from . import DOMAIN as DANFOSS_AIR_DOMAIN
|
||||
|
||||
|
@ -11,7 +14,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
data = hass.data[DANFOSS_AIR_DOMAIN]
|
||||
|
||||
sensors = [
|
||||
["Danfoss Air Bypass Active", ReadCommand.bypass, "opening"],
|
||||
["Danfoss Air Bypass Active", ReadCommand.bypass, DEVICE_CLASS_OPENING],
|
||||
["Danfoss Air Away Mode Active", ReadCommand.away_mode, None],
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue