home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.88k stars 28.97k forks source link

Tesla broken in home-assisstant 0.56: 'RLock' object is not callable #10030

Closed cgoudie closed 6 years ago

cgoudie commented 6 years ago

Home Assistant release (hass --version): 0.56.0

Python release (python3 --version): Python 3.5.3

Component/platform: Tesla

Description of problem:

2017-10-22 08:15:52 ERROR (MainThread) [homeassistant.setup] Error during setup of component tesla Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/homeassistant/setup.py", line 194, in _async_setup_component component.setup, hass, processed_config) File "/usr/lib/python3.5/asyncio/futures.py", line 380, in iter yield self # This tells Task to wait for completion. File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, 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 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/tesla.py", line 59, in setup email, password, update_interval), File "/root/.homeassistant/deps/lib/python3.5/site-packages/teslajsonpy/controller.py", line 26, in init self.update(car['id']) File "/root/.homeassistant/deps/lib/python3.5/site-packages/teslajsonpy/controller.py", line 56, in update with self.__lock(): TypeError: 'RLock' object is not callable

In the UI, the result of this is: Invalid Config The following components and platforms could not be set up: tesla Please check your config

petzlux commented 6 years ago

Same here! Pinging @zabuldon

thomas70 commented 6 years ago

Same here

zabuldon commented 6 years ago

checking now