From 73fdadb243071303f6204ffed14b5fedbf55bb97 Mon Sep 17 00:00:00 2001 From: Andrea Cagnola Date: Fri, 6 Sep 2024 13:31:16 +0200 Subject: [PATCH] Correct function 'get_stream_subscription' name --- pymammotion/mammotion/devices/mammotion.py | 2 +- tests/login_and_get_stream_token.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pymammotion/mammotion/devices/mammotion.py b/pymammotion/mammotion/devices/mammotion.py index a63cd85..ae82fd7 100644 --- a/pymammotion/mammotion/devices/mammotion.py +++ b/pymammotion/mammotion/devices/mammotion.py @@ -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(): diff --git a/tests/login_and_get_stream_token.py b/tests/login_and_get_stream_token.py index f691d12..1fc9799 100644 --- a/tests/login_and_get_stream_token.py +++ b/tests/login_and_get_stream_token.py @@ -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: