Wink component broken by 0.48.1 update

I updated to 0.48.1 today and made no other changes to my config that had previously been working fine. Now I get the error message about invalid Wink config. Looking at the log, I’m seeing
2017-07-08 13:40:01 ERROR (MainThread) [homeassistant.setup] Error during setup of component wink Traceback (most recent call last): File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py", line 190, in _async_setup_component component.setup, hass, processed_config) File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__ yield self # This tells Task to wait for completion. File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup value = future.result() File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result raise self._exception File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run result = self.fn(*self.args, **self.kwargs) File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/wink.py", line 120, in setup pywink.get_subscription_key()) File "/home/homeassistant/.homeassistant/deps/pywink/api.py", line 252, in get_subscription_key response_dict = wink_api_fetch() File "/home/homeassistant/.homeassistant/deps/pywink/api.py", line 271, in wink_api_fetch raise WinkAPIException("401 Response from Wink API. Maybe Bearer token is expired?") pywink.api.WinkAPIException: 401 Response from Wink API. Maybe Bearer token is expired?

I integrate Wink using an API Client ID and Secret. Help?

Are you still having this issue? Does it go away if you downgrade? Nothing in Wink has changed in several releases.

Were you using the same client id and secret as you were prior to upgrading?

Dont khow if will help but i just install 0.48.1 and my wink its working but i did not integrate using api i just did email and password

To answer your second question, the ID and Secret are the same I have always used, and I even double checked that everything on the Wink Developer Portal was still up to date (it was).

I haven’t yet tried a downgrade (TBH I will have to look up how to do that)

And just to be sure, here’s my config entry:
wink: email: # email redacted password: # password redacted client_id: # client id redacted client_secret: # client secret redacted

So these are client_id and client_secrets from the new developer.wink.com site?

If so those won’t work (don’t think they ever have) they will work once this https://github.com/home-assistant/home-assistant/pull/8208 gets added.

You can test it if you would like! Get the wink.py form that link and place it into your “HA_CONFIG_DIR/custom_components” (create this directory) and then restart.

You will need to update your HA config and remove everything under the wink: heading. Log in to HA and you will see a Wink configurator which will walk you through setup.

w1ll1am23, I was using ID and secret from the new developer.wink site so that explains it not working. For now I’ve gone back to the manual access token from the components page and everything works again. I’m not sophisticated enough to dig down into my Hassbian file system and add that file. I’ll anxiously await its integration :grin: