Skip to content
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

Error loading #14

Open
Kennochas opened this issue Jul 31, 2022 · 3 comments
Open

Error loading #14

Kennochas opened this issue Jul 31, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@Kennochas
Copy link

Getting this error on my Mila stuff in Home assistant. Seemed to happen after updating to 8ed6332

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/mila/init.py", line 19, in async_setup_entry
coordinator = MilaUpdateCoordinator(hass, entry)
File "/config/custom_components/mila/update_coordinator.py", line 37, in init
self._api = MilaApi(MilaConfigEntryAuth(hass, config_entry, MilaOauthImplementation(hass, config_entry)))
File "/config/custom_components/mila/auth.py", line 43, in init
self._auth = milasdk.MilaOauth2(token=cast(dict, config_entry.data["token"]))
KeyError: 'token'

@sanghviharshit
Copy link
Owner

This PR introduced significant changes and it requires removing the existing integration, restarting HA, and adding Mila integration again. Let me know if it doesn't work

@sanghviharshit sanghviharshit added the documentation Improvements or additions to documentation label Aug 1, 2022
@Coltonc188
Copy link

Hello,

I'm trying to add this, and I have it added in HACS, and restarted my HA. Once I have done that and go back to integration to add Mila. I search it, and its not finding it? I'm not sure what to do at this point. I went back into HACS, and it no longer says pending restart, so I would think it would be there, but searching Mila, or HA-Mila nothing pulls up.

Any thoughts?

@scyto
Copy link

scyto commented Nov 6, 2022

This PR introduced significant changes and it requires removing the existing integration, restarting HA, and adding Mila integration again. Let me know if it doesn't work

this fixed it for me (i had been meaning to fix for months, lol) thanks for the nice integration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants