Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

homeassistant log #77

Open
bossben8 opened this issue Jan 9, 2024 · 6 comments
Open

homeassistant log #77

bossben8 opened this issue Jan 9, 2024 · 6 comments

Comments

@bossben8
Copy link

bossben8 commented Jan 9, 2024

ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [1716058984] BathHeaterEntityV5.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 2149, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2186, 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 882, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 952, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/fan/init.py", line 334, in async_handle_turn_on_service
await self.async_turn_on(percentage, preset_mode, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: BathHeaterEntityV5.async_turn_on() takes from 1 to 2 positional arguments but 3 were given

@stone5202
Copy link

I've got the same question

@AlexAl77
Copy link

Dear author, please release a bug update.

@walking-octopus
Copy link

Update: The issue resolved on its own.

However, after reading the log provided, I see no mention of miio-yeelink integration. It just talks about some boiler or something...

Can anyone still experiencing the issue post actually relevant logs?

@AlexAl77
Copy link

AlexAl77 commented Jan 28, 2024

Failed to call fan/turn_on service. BathHeaterEntity.async_turn_on() takes from 1 to 2 positional arguments but 3 were given

Tell me how to send me the logs, where are they located? After the update, the bathroom dryer stopped responding, you can only control the light

Maybe this will help? syssi/xiaomi_fan#239

@stone5202
Copy link

I have solved this problem probably
u need to change the code in the file => /homeassistant/custom_components/miio_yeelink/init.py
first, find the version of your device
and find async_turn_on
change the code to
async def async_turn_on(self, speed=None, preset_mode=None) -> None:
_LOGGER.debug('Turning on for %s. speed: %s, preset_mode: %s', self._name, speed, preset_mode)
final, reboot your home assistant
I'm just an amateur, but making these adjustments indeed temporarily resolved the issue I encountered

@AlexAl77
Copy link

async def async_turn_on(self, speed: str = None, **kwargs) -> None:

Fix for HA 2023.12.2 where turn_on would not work anymore.

async def async_turn_on(self, speed: str = None, mode: str = None, **kwargs) -> None:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants