Skip to content

Switchbot Bluetooth not working  #93

Open
@Kev1n121

Description

2024-09-17 09:10:33.756 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "X:\Downloads\HassWP_2024.4.3\python-3.12.3.amd64\Lib\site-packages\switchbot\devices\device.py", line 574, in update
if info := await self.get_basic_info():
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\Downloads\HassWP_2024.4.3\python-3.12.3.amd64\Lib\site-packages\switchbot\devices\blind_tilt.py", line 112, in get_basic_info
if not (_data := await self._get_basic_info()):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\Downloads\HassWP_2024.4.3\python-3.12.3.amd64\Lib\site-packages\switchbot\devices\device.py", line 546, in _get_basic_info
_data = await self._send_command(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\Downloads\HassWP_2024.4.3\python-3.12.3.amd64\Lib\site-packages\switchbot\devices\device.py", line 185, in _send_command
return await self._send_command_locked(key, command)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\Downloads\HassWP_2024.4.3\python-3.12.3.amd64\Lib\site-packages\switchbot\devices\device.py", line 419, in _send_command_locked
await self._ensure_connected()
File "X:\Downloads\HassWP_2024.4.3\python-3.12.3.amd64\Lib\site-packages\switchbot\devices\device.py", line 279, in ensure_connected
client: BleakClientWithServiceCache = await establish_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "X:\Downloads\HassWP_2024.4.3\python-3.12.3.amd64\Lib\site-packages\bleak_retry_connector_init
.py", line 363, in establish_connection
await client.connect(
File "X:\Downloads\HassWP_2024.4.3\python-3.12.3.amd64\Lib\site-packages\habluetooth\wrappers.py", line 278, in connect
self._backend = wrapped_backend.client(
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BleakClientWinRT.init() missing 1 required keyword-only argument: 'winrt'

On the older version It did work. (version HassWP_2023.12.4)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions