mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57: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."""
|
"""Obtain a HomeKit device's state."""
|
||||||
# pylint: disable=import-error
|
# pylint: disable=import-error
|
||||||
from homekit.exceptions import (
|
from homekit.exceptions import (
|
||||||
AccessoryDisconnectedError, AccessoryNotFoundError)
|
AccessoryDisconnectedError, AccessoryNotFoundError,
|
||||||
|
EncryptionError)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
new_values_dict = await self._accessory.get_characteristics(
|
new_values_dict = await self._accessory.get_characteristics(
|
||||||
@ -106,7 +107,7 @@ class HomeKitEntity(Entity):
|
|||||||
# visible on the network.
|
# visible on the network.
|
||||||
self._available = False
|
self._available = False
|
||||||
return
|
return
|
||||||
except AccessoryDisconnectedError:
|
except (AccessoryDisconnectedError, EncryptionError):
|
||||||
# Temporary connection failure. Device is still available but our
|
# Temporary connection failure. Device is still available but our
|
||||||
# connection was dropped.
|
# connection was dropped.
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user