diff --git a/pyacaia_async/helpers.py b/pyacaia_async/helpers.py index 7ae468f..7f5c31e 100644 --- a/pyacaia_async/helpers.py +++ b/pyacaia_async/helpers.py @@ -46,14 +46,13 @@ async def is_new_scale(address_or_ble_device: str | BLEDevice) -> bool: async with BleakClient(address_or_ble_device) as client: try: await client.connect() - services = await client.get_services() except BleakDeviceNotFoundError as ex: raise AcaiaDeviceNotFound("Device not found") from ex except (BleakError, Exception) as ex: raise AcaiaError from ex characteristics = [] - for char in services.characteristics.values(): + for char in client.services.characteristics.values(): characteristics.append(char.uuid) if OLD_STYLE_CHAR_ID in characteristics: diff --git a/setup.py b/setup.py index ebe2610..c14f2dc 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pyacaia_async", - version="0.1.1", + version="0.1.2", description="An async implementation of PyAcaia", long_description=readme, long_description_content_type="text/markdown",