Bump python-broadlink to 0.15.0 (#39228)

* Rename DeviceOfflineError to NetworkTimeoutError

* Bump python-broadlink to 0.15
This commit is contained in:
Felipe Martins Diel authored and GitHub committed 2020-09-26 10:46:02 -05:00
1 parent 6977425d04
commit 2f4aa35ca6
9 files changed
+26 -26

No files matched your search

+3 -3
View File
@@ -9,7 +9,7 @@ import logging
from broadlink.exceptions import (
AuthorizationError,
BroadlinkException,
DeviceOfflineError,
NetworkTimeoutError,
ReadError,
StorageError,
)
@@ -262,7 +262,7 @@ class BroadlinkRemote(RemoteEntity, RestoreEntity):
try:
await self._device.async_request(self._device.api.send_data, code)
except (AuthorizationError, DeviceOfflineError, OSError) as err:
except (AuthorizationError, NetworkTimeoutError, OSError) as err:
_LOGGER.error("Failed to send '%s': %s", command, err)
break
@@ -295,7 +295,7 @@ class BroadlinkRemote(RemoteEntity, RestoreEntity):
if toggle:
code = [code, await self._async_learn_command(command)]
except (AuthorizationError, DeviceOfflineError, OSError) as err:
except (AuthorizationError, NetworkTimeoutError, OSError) as err:
_LOGGER.error("Failed to learn '%s': %s", command, err)
break