mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Cleanup BLE-only controls when migrating HomeKit BLE device to Thread (#110334)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@ -18,7 +18,7 @@ from aiohomekit.exceptions import (
|
||||
EncryptionError,
|
||||
)
|
||||
from aiohomekit.model import Accessories, Accessory, Transport
|
||||
from aiohomekit.model.characteristics import Characteristic
|
||||
from aiohomekit.model.characteristics import Characteristic, CharacteristicsTypes
|
||||
from aiohomekit.model.services import Service, ServicesTypes
|
||||
|
||||
from homeassistant.components.thread.dataset_store import async_get_preferred_dataset
|
||||
@ -544,6 +544,10 @@ class HKDevice:
|
||||
current_unique_id.add((accessory.aid, service.iid, None))
|
||||
|
||||
for char in service.characteristics:
|
||||
if self.pairing.transport != Transport.BLE:
|
||||
if char.type == CharacteristicsTypes.THREAD_CONTROL_POINT:
|
||||
continue
|
||||
|
||||
current_unique_id.add(
|
||||
(
|
||||
accessory.aid,
|
||||
|
Reference in New Issue
Block a user