mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
homekit_controller no longer logs with transient network errors causing crypto failures as it will auto recover (#24193)
This commit is contained in:
parent
d1aa4f42e5
commit
bcee3f9570
@ -95,7 +95,8 @@ class HomeKitEntity(Entity):
|
||||
"""Obtain a HomeKit device's state."""
|
||||
# pylint: disable=import-error
|
||||
from homekit.exceptions import (
|
||||
AccessoryDisconnectedError, AccessoryNotFoundError)
|
||||
AccessoryDisconnectedError, AccessoryNotFoundError,
|
||||
EncryptionError)
|
||||
|
||||
try:
|
||||
new_values_dict = await self._accessory.get_characteristics(
|
||||
@ -106,7 +107,7 @@ class HomeKitEntity(Entity):
|
||||
# visible on the network.
|
||||
self._available = False
|
||||
return
|
||||
except AccessoryDisconnectedError:
|
||||
except (AccessoryDisconnectedError, EncryptionError):
|
||||
# Temporary connection failure. Device is still available but our
|
||||
# connection was dropped.
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user