Skip to content

Commit

Permalink
Correct function 'get_stream_subscription' name
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Cagnola committed Sep 6, 2024
1 parent 9694f6d commit 73fdadb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pymammotion/mammotion/devices/mammotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def mower(self, name: str):
if device:
return device.mower_state()

async def get_stream_subsctiption(self, name: str):
async def get_stream_subscription(self, name: str):
device = self.get_device_by_name(name)
if self._preference is ConnectionPreference.WIFI:
if self.mammotion_http_client is not None and device.has_cloud():
Expand Down
2 changes: 1 addition & 1 deletion tests/login_and_get_stream_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def run():



await _mammotion.get_stream_subsctiption(DEVICE_NAME)
await _mammotion.get_stream_subscription(DEVICE_NAME)

return _mammotion
except Exception as ex:
Expand Down

0 comments on commit 73fdadb

Please sign in to comment.