Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/skykettle-ha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames <12912950+WilJames@users.noreply.github.com>2023-01-11 21:19:57 +0300
committerGitHub <noreply@github.com>2023-01-11 21:19:57 +0300
commit5ae2ebab5ee3665fda5f5a1305984f333e0cd77c (patch)
tree1c21ea0ee73fd6382d25b9552712a879126123bf
parente62f7a72b7f1b4d72980b3e67968c018267fb98c (diff)
fix await
-rw-r--r--custom_components/skykettle/kettle_connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom_components/skykettle/kettle_connection.py b/custom_components/skykettle/kettle_connection.py
index 0a190cb..1c67634 100644
--- a/custom_components/skykettle/kettle_connection.py
+++ b/custom_components/skykettle/kettle_connection.py
@@ -106,7 +106,7 @@ class KettleConnection(SkyKettle):
try:
if self._client:
was_connected = self._client.is_connected
- self._client.disconnect()
+ await self._client.disconnect()
if was_connected: _LOGGER.debug("Disconnected")
finally:
self._auth_ok = False