-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XiaomiGenericDevice.async_turn_on() takes from 1 to 2 positional arguments but 3 were given #239
Comments
I have the same error, downgraded to 2023.11 (works fine with 2023.11) |
I will prepare a 2023.12 compatible release as soon as possible. |
For now simply change the automation or script to fan: set speed X%; instead of fan: turn on. |
Had the same problem. Problem cause appears to be this: To fix in this project:
|
Tnx, this fix seems to work, when will this be released? |
I will prepare a release soon. |
I've prepared a new release. Please give it a try! |
I see some errors and fan is unavailable now Logger: miio.miioprotocol Got error when receiving: timed out Logger: homeassistant.helpers.entity Update of fan.ventilator_bureau is taking over 10 seconds Logger: miio.miioprotocol Got error when receiving: timed out |
Are you sure your fan isn't in deep sleep? Are you able to ping the device? |
Sorry fan changed its IP because of some network maintenance today. Can be closed. |
Looks to be working on my side now - thanks! 👍 |
Since HA 2023.12 I receive an error when turning on the fan. Turning off is working.
I receive the following log entry.
`Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:238
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 07:05:46 (6 occurrences)
Last logged: 11:39:33
[140603200636608] XiaomiGenericDevice.async_turn_on() takes from 1 to 2 positional arguments but 3 were given
[140603187250112] XiaomiGenericDevice.async_turn_on() takes from 1 to 2 positional arguments but 3 were given
[140602901802944] XiaomiGenericDevice.async_turn_on() takes from 1 to 2 positional arguments but 3 were given
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 238, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2067, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2104, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 272, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 878, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 305, in async_handle_turn_on_service
await self.async_turn_on(percentage, preset_mode, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: XiaomiGenericDevice.async_turn_on() takes from 1 to 2 positional arguments but 3 were given
`
The text was updated successfully, but these errors were encountered: