mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 12:30:31 +00:00
Fix HKC exceptions during BLE startup not being caught (#80882)
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
"""Constants for the homekit_controller component."""
|
||||
import asyncio
|
||||
from typing import Final
|
||||
|
||||
from aiohomekit.exceptions import (
|
||||
AccessoryDisconnectedError,
|
||||
AccessoryNotFoundError,
|
||||
EncryptionError,
|
||||
)
|
||||
from aiohomekit.model.characteristics import CharacteristicsTypes
|
||||
from aiohomekit.model.services import ServicesTypes
|
||||
|
||||
@@ -94,3 +100,10 @@ CHARACTERISTIC_PLATFORMS = {
|
||||
|
||||
# Device classes
|
||||
DEVICE_CLASS_ECOBEE_MODE: Final = "homekit_controller__ecobee_mode"
|
||||
|
||||
STARTUP_EXCEPTIONS = (
|
||||
asyncio.TimeoutError,
|
||||
AccessoryNotFoundError,
|
||||
EncryptionError,
|
||||
AccessoryDisconnectedError,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user