homekit_controller no longer logs with transient network errors causing crypto failures as it will auto recover (#24193)

This commit is contained in:
Jc2k 2019-05-30 17:40:38 +01:00 committed by Paulus Schoutsen
parent d1aa4f42e5
commit bcee3f9570

View File

@ -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