Skip to content

Commit

Permalink
Merge pull request #209 from MTrab:Fix-warnings
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
MTrab authored Apr 16, 2024
2 parents 6d10cf6 + 008e22c commit 542ce6b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"configurations": [
{
"name": "test.py",
"type": "python",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/test.py",
"console": "integratedTerminal",
Expand All @@ -15,7 +15,7 @@
},
{
"name": "test_with.py",
"type": "python",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/test_with.py",
"console": "integratedTerminal",
Expand Down
2 changes: 1 addition & 1 deletion pyworxcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def _decode_data(self, device: DeviceHandler) -> None:
logger.debug("No valid data was found, skipping update for %s", device.name)
return

mower = device._mower
mower = device.mower
if "dat" in data:
mower["last_status"]["payload"]["dat"] = data["dat"]
if "uuid" in data["dat"]:
Expand Down
2 changes: 1 addition & 1 deletion pyworxcloud/utils/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(
super().__init__()

self._api = api
self._mower = mower
self.mower = mower
self._tz = tz

if not isinstance(mower, type(None)) and not isinstance(api, type(None)):
Expand Down
2 changes: 2 additions & 0 deletions test_with.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Testfile demonstrating the "with method" of calling the module."""

from os import environ
from pprint import pprint

Expand Down

0 comments on commit 542ce6b

Please sign in to comment.