mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Adjust binary_sensor device classes in homekit (#69239)
This commit is contained in:
parent
396fddfbfa
commit
4e87a8c568
@ -11,7 +11,6 @@ from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||
from homeassistant.const import (
|
||||
ATTR_DEVICE_CLASS,
|
||||
ATTR_UNIT_OF_MEASUREMENT,
|
||||
DEVICE_CLASS_CO2,
|
||||
STATE_HOME,
|
||||
STATE_ON,
|
||||
TEMP_CELSIUS,
|
||||
@ -76,7 +75,6 @@ BINARY_SENSOR_SERVICE_MAP: dict[str, SI] = {
|
||||
BinarySensorDeviceClass.CO: SI(
|
||||
SERV_CARBON_MONOXIDE_SENSOR, CHAR_CARBON_MONOXIDE_DETECTED, int
|
||||
),
|
||||
DEVICE_CLASS_CO2: SI(SERV_CARBON_DIOXIDE_SENSOR, CHAR_CARBON_DIOXIDE_DETECTED, int),
|
||||
BinarySensorDeviceClass.DOOR: SI(
|
||||
SERV_CONTACT_SENSOR, CHAR_CONTACT_SENSOR_STATE, int
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user