mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Remove automatic linkage of doorbells to HomeKit accessories via device class occupancy (#127668)
This commit is contained in:
parent
c043142b86
commit
0326e58c8a
@ -167,7 +167,6 @@ BATTERY_SENSOR = (SENSOR_DOMAIN, SensorDeviceClass.BATTERY)
|
|||||||
MOTION_EVENT_SENSOR = (EVENT_DOMAIN, EventDeviceClass.MOTION)
|
MOTION_EVENT_SENSOR = (EVENT_DOMAIN, EventDeviceClass.MOTION)
|
||||||
MOTION_SENSOR = (BINARY_SENSOR_DOMAIN, BinarySensorDeviceClass.MOTION)
|
MOTION_SENSOR = (BINARY_SENSOR_DOMAIN, BinarySensorDeviceClass.MOTION)
|
||||||
DOORBELL_EVENT_SENSOR = (EVENT_DOMAIN, EventDeviceClass.DOORBELL)
|
DOORBELL_EVENT_SENSOR = (EVENT_DOMAIN, EventDeviceClass.DOORBELL)
|
||||||
DOORBELL_BINARY_SENSOR = (BINARY_SENSOR_DOMAIN, BinarySensorDeviceClass.OCCUPANCY)
|
|
||||||
HUMIDITY_SENSOR = (SENSOR_DOMAIN, SensorDeviceClass.HUMIDITY)
|
HUMIDITY_SENSOR = (SENSOR_DOMAIN, SensorDeviceClass.HUMIDITY)
|
||||||
|
|
||||||
|
|
||||||
@ -1138,10 +1137,6 @@ class HomeKit:
|
|||||||
config[entity_id].setdefault(
|
config[entity_id].setdefault(
|
||||||
CONF_LINKED_DOORBELL_SENSOR, doorbell_event_entity_id
|
CONF_LINKED_DOORBELL_SENSOR, doorbell_event_entity_id
|
||||||
)
|
)
|
||||||
elif doorbell_binary_sensor_entity_id := lookup.get(DOORBELL_BINARY_SENSOR):
|
|
||||||
config[entity_id].setdefault(
|
|
||||||
CONF_LINKED_DOORBELL_SENSOR, doorbell_binary_sensor_entity_id
|
|
||||||
)
|
|
||||||
|
|
||||||
if domain == HUMIDIFIER_DOMAIN and (
|
if domain == HUMIDIFIER_DOMAIN and (
|
||||||
current_humidity_sensor_entity_id := lookup.get(HUMIDITY_SENSOR)
|
current_humidity_sensor_entity_id := lookup.get(HUMIDITY_SENSOR)
|
||||||
|
@ -2030,7 +2030,6 @@ async def test_homekit_finds_linked_motion_sensors(
|
|||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
("domain", "device_class"),
|
("domain", "device_class"),
|
||||||
[
|
[
|
||||||
("binary_sensor", BinarySensorDeviceClass.OCCUPANCY),
|
|
||||||
("event", EventDeviceClass.DOORBELL),
|
("event", EventDeviceClass.DOORBELL),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user