8000 tellduslive does not work if package 'requests' is upgraded · Issue #12944 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tellduslive does not work if package 'requests' is upgraded #12944

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

Closed
Konstigt opened this issue Mar 6, 2018 · 2 comments
Closed

tellduslive does not work if package 'requests' is upgraded #12944

Konstigt opened this issue Mar 6, 2018 · 2 comments

Comments

@Konstigt
Copy link
Konstigt commented Mar 6, 2018

Home Assistant release (hass --version):

0.64.0

Python release (python3 --version):

Python 3.5.2

Component/platform:

tellduslive

Description of problem:

If I don't downgrade package 'requests' to 2.14.2, tellduslive does not start.

To downgrade:

pip3 install requests==2.14.2

If I don't downgrade, requests-2.18.4 is installed on my system.

Expected:

Clean startup.

Problem-relevant configuration.yaml entries and steps to reproduce:

tellduslive:

Traceback (if applicable):

2018-03-06 13:22:14 ERROR (MainThread) [homeassistant.setup] Error during setup of component tellduslive
Traceback (most recent call last):
  File "/home/homeassistant/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)
  File "/usr/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/homeassistant/homeassistant/lib/python3.5/site-packages/homeassistant/components/tellduslive.py", line 202, in setup
    client.update()
  File "/home/homeassistant/homeassistant/lib/python3.5/site-packages/homeassistant/components/tellduslive.py", line 228, in update
    self._sync()
  File "/home/homeassistant/homeassistant/lib/python3.5/site-packages/homeassistant/components/tellduslive.py", line 271, in _sync
    entity.changed()
  File "/home/homeassistant/homeassistant/lib/python3.5/site-packages/homeassistant/components/tellduslive.py", line 297, in changed
    self.schedule_update_ha_state()
  File "/home/homeassistant/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 294, 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 info:

Workaround first presented here - #10326 (comment) but I have never seen a real solution to the problem.

@code-to-joy
Copy link

I can confirm. I'm seeing this issue as well, both in old 0.58 and 0.64.3 (just upgraded). Workaround to downgrade requests to 2.14.2 still works.

@Konstigt
Copy link
Author

Now with ver > 0.65 you need Python ver > 3.5.2. This made med upgrade to Python 3.6. After this and reinstall of Home Assistant, this problem went away. I now am up and running with the latest ver of requests, 2.18.4.

@home-assistant home-assistant locked and limited conversation to collaborators Jul 26, 2018
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

2 participants
0