Browse Source

Export close_stale_connections in __all__ (#107)

J. Nick Koston 1 year ago
parent
commit
a469fd6921
2 changed files with 3 additions and 2 deletions
  1. 1 1
      setup.py
  2. 2 1
      switchbot/__init__.py

+ 1 - 1
setup.py

@@ -3,7 +3,7 @@ from setuptools import setup
 setup(
     name="PySwitchbot",
     packages=["switchbot", "switchbot.devices", "switchbot.adv_parsers"],
-    install_requires=["async_timeout>=4.0.1", "bleak", "bleak-retry-connector>=1.12.2"],
+    install_requires=["async_timeout>=4.0.1", "bleak", "bleak-retry-connector>=1.13.0"],
     version="0.19.2",
     description="A library to communicate with Switchbot",
     author="Daniel Hjelseth Hoyer",

+ 2 - 1
switchbot/__init__.py

@@ -1,7 +1,7 @@
 """Library to handle connection with Switchbot."""
 from __future__ import annotations
 
-from bleak_retry_connector import get_device
+from bleak_retry_connector import get_device, close_stale_connections
 
 from .adv_parser import SwitchbotSupportedType, parse_advertisement_data
 from .const import SwitchbotModel
@@ -19,6 +19,7 @@ from .models import SwitchBotAdvertisement
 
 __all__ = [
     "get_device",
+    "close_stale_connections",
     "parse_advertisement_data",
     "GetSwitchbotDevices",
     "SwitchBotAdvertisement",