1 """Support for the for Danfoss Air HRV binary sensors."""
3 from __future__
import annotations
5 from pydanfossair.commands
import ReadCommand
8 BinarySensorDeviceClass,
15 from .
import DOMAIN
as DANFOSS_AIR_DOMAIN
21 add_entities: AddEntitiesCallback,
22 discovery_info: DiscoveryInfoType |
None =
None,
24 """Set up the available Danfoss Air sensors etc."""
25 data = hass.data[DANFOSS_AIR_DOMAIN]
29 "Danfoss Air Bypass Active",
31 BinarySensorDeviceClass.OPENING,
33 [
"Danfoss Air Away Mode Active", ReadCommand.away_mode,
None],
46 """Representation of a Danfoss Air binary sensor."""
48 def __init__(self, data, name, sensor_type, device_class):
49 """Initialize the Danfoss Air binary sensor."""
56 """Fetch new state data for the sensor."""
def __init__(self, data, name, sensor_type, device_class)
None add_entities(AsusWrtRouter router, AddEntitiesCallback async_add_entities, set[str] tracked)
None setup_platform(HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
float|int|str|None get_value(Sensor sensor, str field)