Skip to content

Failed to connect to MQTT: function takes exactly 18 arguments (17 given) #1229

@Phoenix-DH

Description

@Phoenix-DH

Describe the issue

Failed to connect to MQTT: function takes exactly 18 arguments (17 given)

What version of Home Assistant Core has the issue?

2026.4.3

What was the last working version of Home Assistant Core?

2026.4.2

What version of the Landroid Cloud integration do you have installed

?

What type of installation are you running?

Home Assistant OS

Which make and model is the mower used for this integration

Landroid M500+ (2023)

Diagnostics information (NOT log entries!)

Relevant log entries

Logger: pyworxcloud.MQTT
Source: /usr/local/lib/python3.14/site-packages/pyworxcloud/utils/mqtt.py:472
First occurred: 8:41:59 PM (1 occurrence)
Last logged: 8:41:59 PM

Failed to connect to MQTT: function takes exactly 18 arguments (17 given)

Logger: homeassistant.config_entries
Source: /usr/src/homeassistant/homeassistant/config_entries.py:751
First occurred: 8:41:59 PM (1 occurrence)
Last logged: 8:41:59 PM

Error setting up entry xxx for landroid_cloud
Traceback (most recent call calls):
  File "/usr/local/lib/python3.14/site-packages/pyworxcloud/utils/mqtt.py", line 472, in <lambda>
    self._connection_future.result()
  File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 401, in in result
    raise self._exception
  File "/usr/local/lib/python3.14/site-packages/pyworxcloud/utils/mqtt.py", line 250, in in connect
    connect_result = self._connection_future.result()
  File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 456, in in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 401, in in result
    raise self._exception
TypeError: function takes exactly 18 arguments (17 given)


The above exception was the direct cause of the following exception:

Traceback (most recent recent calls):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 751, in in _async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/landroid_cloud/__init__.py", line 40, in in async_setup_entry
    result = await _async_setup(hass, entry)
  File "/config/custom_components/landroid_cloud/__init__.py", line 135, in in _async_setup
    await hass.async_add_executor_job(cloud.connect)
  File "/usr/local/lib/python3.14/site-packages/pyworxcloud/__init__.py", line 282, in in connect
    self.mqtt.connect()
  File "/usr/local/lib/python3.14/site-packages/pyworxcloud/utils/mqtt.py", line 249, in in connect
    raise NoConnectionError() from exc
pyworxcloud.exceptions.NoConnectionError

### Additional information

_

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Worx LandroidWorx Landroid device specificbugSomething isn't workingpyworxcloudIndicates that this issue is from pyworxcloud

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions