Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pymyq/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Define a version constant."""
__version__ = "3.1.1"
__version__ = "3.1.2"
2 changes: 1 addition & 1 deletion pymyq/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async def _send_state_command(
)
await self._wait_for_state_task

# We return true if state is already closed.
# We return true if current state is already in new state.
if self.state == to_state:
_LOGGER.debug(
"Device %s is in state %s, nothing to do.", self.name, to_state
Expand Down
5 changes: 3 additions & 2 deletions pymyq/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,10 @@ async def _send_request(
await self._get_useragent()

except ClientError as err:
if err.errno == 54 and attempt == 0:
if err.errno in (54, 104) and attempt == 0:
_LOGGER.debug(
"Received error status 54, connection reset. Will refresh user agent."
"Received error status %s, connection reset. Will refresh user agent.",
err.errno,
)
await self._get_useragent()
else:
Expand Down