wijnandtop / home_assistant_gardena

Custom component to support Gardena smart devices
31 stars 7 forks source link

Problem after Firmware Upgrade of Gardena Smart System #7

Closed steveknoefler closed 5 years ago

steveknoefler commented 5 years ago

Hi, do you know this problem? I think it came on after firmware upgrade to HomeKit update.

Error during setup of component gardena Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/homeassistant/setup.py", line 154, in _async_setup_component component.setup, hass, processed_config) # type: ignore File "/usr/local/lib/python3.5/asyncio/futures.py", line 381, in iter yield self # This tells Task to wait for completion. File "/usr/local/lib/python3.5/asyncio/tasks.py", line 310, in _wakeup future.result() File "/usr/local/lib/python3.5/asyncio/futures.py", line 294, in result raise self._exception File "/usr/local/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/home/hass/.homeassistant/custom_components/gardena/init.py", line 39, in setup hass.data[GARDENA_LOGIN] = GardenaHub(hass, config[DOMAIN], GardenaSmartAccount) File "/home/hass/.homeassistant/custom_components/gardena/init.py", line 59, in init self.my_gardena = gardena(domain_config[CONF_USERNAME], domain_config[CONF_PASSWORD]) File "/home/hass/.homeassistant/deps/lib/python3.5/site-packages/wt/pygardena/account.py", line 14, in init self.update_authtokens() File "/home/hass/.homeassistant/deps/lib/python3.5/site-packages/wt/pygardena/account.py", line 42, in update_authtokens self.AuthToken = response_data['sessions']['token'] KeyError: 'sessions'

thanks

wijnandtop commented 5 years ago

Haven’t tried it yet. My gardena equipment is currently boxed since I will move to a different location soon (so my mower has more lawn to mow).

Hopefully someone else can take a look else I will dive into this issue as soon as my mower is connected.

tameike000 commented 5 years ago

+1 Same problem here

wijnandtop commented 5 years ago

I did some changes, which I couldn't test myself, since my equipment isn't available. Can you check if this solved your issue?

steveknoefler commented 5 years ago

yes it´s working :)

thanks

tameike000 commented 5 years ago

Can confirm, it works again! Sweet!

Thanks for the quick fix.