Skip to content
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

Error on broadcasting with param #210

Closed
elden1337 opened this issue Mar 12, 2023 · 0 comments
Closed

Error on broadcasting with param #210

elden1337 opened this issue Mar 12, 2023 · 0 comments

Comments

@elden1337
Copy link
Owner

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/peaqev/peaqservice/hub/observer.py:57 
Integration: Home Assistant WebSocket API (documentation, issues) 
First occurred: 06:38:21 (6 occurrences) 
Last logged: 06:39:03

[547512935680] HomeAssistantHub._update_charger_enabled() missing 1 required positional argument: 'val'
[547372874864] HomeAssistantHub._update_charger_enabled() missing 1 required positional argument: 'val'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 198, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1808, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1845, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 686, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 961, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 726, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1023, in async_turn_off
    await self.hass.async_add_executor_job(ft.partial(self.turn_off, **kwargs))
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/peaqev/switch.py", line 59, in turn_off
    self.hub.observer.broadcast("update charger enabled", False)
  File "/config/custom_components/peaqev/peaqservice/hub/observer.py", line 35, in broadcast
    self._dequeue_and_broadcast(q)
  File "/config/custom_components/peaqev/peaqservice/hub/observer.py", line 57, in _dequeue_and_broadcast
    func()
TypeError: HomeAssistantHub._update_charger_enabled() missing 1 required positional argument: 'val'
elden1337 pushed a commit that referenced this issue Mar 12, 2023
elden1337 pushed a commit that referenced this issue Mar 12, 2023
elden1337 pushed a commit that referenced this issue Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant