Skip to content

Commit a469fd6

Browse files
authored
Export close_stale_connections in __all__ (#107)
1 parent 9147ae3 commit a469fd6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name="PySwitchbot",
55
packages=["switchbot", "switchbot.devices", "switchbot.adv_parsers"],
6-
install_requires=["async_timeout>=4.0.1", "bleak", "bleak-retry-connector>=1.12.2"],
6+
install_requires=["async_timeout>=4.0.1", "bleak", "bleak-retry-connector>=1.13.0"],
77
version="0.19.2",
88
description="A library to communicate with Switchbot",
99
author="Daniel Hjelseth Hoyer",

switchbot/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Library to handle connection with Switchbot."""
22
from __future__ import annotations
33

4-
from bleak_retry_connector import get_device
4+
from bleak_retry_connector import get_device, close_stale_connections
55

66
from .adv_parser import SwitchbotSupportedType, parse_advertisement_data
77
from .const import SwitchbotModel
@@ -19,6 +19,7 @@
1919

2020
__all__ = [
2121
"get_device",
22+
"close_stale_connections",
2223
"parse_advertisement_data",
2324
"GetSwitchbotDevices",
2425
"SwitchBotAdvertisement",

0 commit comments

Comments
 (0)