diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1791b466..6dad20d4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,9 @@ and this project adheres to `Semantic Versioning BleakBackend | str: The value is one of the :class:`BleakBackend` enum values in case of built-in backends, or a string identifying a custom backend. - .. versionadded:: unreleased + .. versionadded:: 2.0 """ return self._backend_id @@ -172,7 +172,7 @@ async def start(self) -> None: BleakBluetoothNotAvailableError: if Bluetooth is not currently available - .. versionchanged:: unreleased + .. versionchanged:: 2.0 Now raises :class:`BleakBluetoothNotAvailableError` instead of :class:`BleakError` when Bluetooth is not currently available. """ @@ -547,7 +547,7 @@ def backend_id(self) -> BleakBackend | str: The value is one of the :class:`BleakBackend` enum values in case of built-in backends, or a string identifying a custom backend. - .. versionadded:: unreleased + .. versionadded:: 2.0 """ return self._backend_id diff --git a/bleak/backends/__init__.py b/bleak/backends/__init__.py index fbec52b5..7d3c0532 100644 --- a/bleak/backends/__init__.py +++ b/bleak/backends/__init__.py @@ -19,7 +19,7 @@ class BleakBackend(str, enum.Enum): """ Identifiers for available built-in Bleak backends. - .. versionadded:: unreleased + .. versionadded:: 2.0 """ P4ANDROID = "p4android" @@ -52,7 +52,7 @@ def get_default_backend() -> BleakBackend: """ Returns the preferred backend for the current platform/environment. - .. versionadded:: unreleased + .. versionadded:: 2.0 """ if os.environ.get("P4A_BOOTSTRAP") is not None: return BleakBackend.P4ANDROID diff --git a/bleak/backends/bluezdbus/manager.py b/bleak/backends/bluezdbus/manager.py index 99c13c96..6ba51ffa 100644 --- a/bleak/backends/bluezdbus/manager.py +++ b/bleak/backends/bluezdbus/manager.py @@ -379,7 +379,7 @@ def get_default_adapter(self) -> str: BleakBluetoothNotAvailableError: if there are no Bluetooth Low Energy adapters or if none of the adapters are powered - .. versionchanged:: unreleased + .. versionchanged:: 2.0 Now raises :class:`BleakBluetoothNotAvailableError` instead of :class:`BleakError`. """ if not any(self._adapters): diff --git a/bleak/exc.py b/bleak/exc.py index f1995b49..bf202e8c 100644 --- a/bleak/exc.py +++ b/bleak/exc.py @@ -14,7 +14,7 @@ class BleakBluetoothNotAvailableReason(enum.Enum): """ Reasons for Bluetooth not being available. - .. versionadded:: unreleased + .. versionadded:: 2.0 """ NO_BLUETOOTH = enum.auto() @@ -57,7 +57,7 @@ class BleakBluetoothNotAvailableError(BleakError): """ Exception which is raised if the Bluetooth access is not available for some reason. - .. versionadded:: unreleased + .. versionadded:: 2.0 """ def __init__(self, msg: str, reason: BleakBluetoothNotAvailableReason) -> None: diff --git a/pyproject.toml b/pyproject.toml index b9bbfd79..005d4cf1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "bleak" -version = "1.1.1" +version = "2.0.0" description = "Bluetooth Low Energy platform Agnostic Klient" authors = [{ name = "Henrik Blidh", email = "henrik.blidh@nedomkull.com" }] license = "MIT"