Core: tellduslive fails after upgrade to 0.80.1

Created on 16 Oct 2018  路  3Comments  路  Source: home-assistant/core

Home Assistant release with the issue:

0.80.1

Last working Home Assistant release (if known):
0.79.3

Operating environment (Hass.io/Docker/Windows/etc.):

Ubuntu 16.04.5 LTS

Component/platform:

https://www.home-assistant.io/components/tellduslive/

Description of problem:
Component tellduslive doesn't work after upgrade.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

tellduslive:

Traceback (if applicable):

2018-10-16 11:58:53 ERROR (MainThread) [homeassistant.setup] Error during setup of component tellduslive
Traceback (most recent call last):
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/tellduslive.py", line 202, in setup
    client.update()
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/tellduslive.py", line 228, in update
    self._sync()
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/tellduslive.py", line 271, in _sync
    entity.changed()
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/components/tellduslive.py", line 297, in changed
    self.schedule_update_ha_state()
  File "/home/homeassistant/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 317, in schedule_update_ha_state
    self.hass.add_job(self.async_update_ha_state(force_refresh))
AttributeError: 'NoneType' object has no attribute 'add_job'

Additional information:
screenshot 2018-10-16 12 03 14

tellduslive

Most helpful comment

I could take a look at this, I was thinking of refactoring the Tellduslive to support the new config flow anyway.

All 3 comments

This is not a new bug. Tellduslive should be refactored to not store entities in a shared container in the component and not access entities directly but via our dispatch helper.

The problem is that the tellduslive component asks the entity to update before it has been added to home assistant.

If the refactor is done this problem will be solved.

As author of the original implementation of this component, I welcome anyone who would like to submit a pull request with a fix for this issue, since I don't use the Telldus Live service or this component anymore.

I could take a look at this, I was thinking of refactoring the Tellduslive to support the new config flow anyway.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arangates picture arangates  路  3Comments

moskovskiy82 picture moskovskiy82  路  3Comments

bdraco picture bdraco  路  3Comments

Elmardus picture Elmardus  路  3Comments

kirichkov picture kirichkov  路  3Comments