Core: If ambient_station fails to connect the first time is generates an error

Created on 14 Apr 2020  路  3Comments  路  Source: home-assistant/core

The problem

homeassistant/components/ambient_station/__init__.py: async_call_later(self._hass, self._ws_reconnect_delay, self.ws_connect)

async_call_later will call ws_connect with now which results in the traceback seen below.

Environment

  • Home Assistant Core release with the issue: 0.109dev
  • Last working Home Assistant Core release (if known):
  • Operating environment (Home Assistant/Supervised/Docker/venv): docker
  • Integration causing this issue: ambient_station
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml


Traceback/Error logs

2020-04-14 00:07:18 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback async_track_point_in_utc_time.<locals>.point_in_time_listener(<Event time_c....002733-05:00>) at /usr/src/homeassistant/homeassistant/helpers/event.py:234
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 250, in point_in_time_listener
    hass.async_run_job(action, now)
  File "/usr/src/homeassistant/homeassistant/core.py", line 379, in async_run_job
    self.async_add_job(target, *args)
  File "/usr/src/homeassistant/homeassistant/core.py", line 311, in async_add_job
    task = self.loop.create_task(target(*args))
TypeError: ws_connect() takes 1 positional argument but 2 were given

Additional information

ambient_station

Most helpful comment

TYVM @bachya & @MartinHjelmare

All 3 comments

Hey there @bachya, mind taking a look at this issue as its been labeled with a integration (ambient_station) you are listed as a codeowner for? Thanks!

Roger that. Fix coming.

TYVM @bachya & @MartinHjelmare

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sogeniusio picture sogeniusio  路  3Comments

i-am-shodan picture i-am-shodan  路  3Comments

Elmardus picture Elmardus  路  3Comments

TheZoker picture TheZoker  路  3Comments

flsabourin picture flsabourin  路  3Comments