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

Since this mornings update and restart #16

Closed
Humphaz opened this issue Jun 21, 2020 · 3 comments
Closed

Since this mornings update and restart #16

Humphaz opened this issue Jun 21, 2020 · 3 comments

Comments

@Humphaz
Copy link

Humphaz commented Jun 21, 2020

Logger: homeassistant.config_entries
Source: custom_components/lightwave2/init.py:102
First occurred: 1:30:25 PM (1 occurrences)
Last logged: 1:30:25 PM

Error setting up entry Lightwave 2 for lightwave2
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 217, in async_setup
hass, self
File "/config/custom_components/lightwave2/init.py", line 102, in async_setup_entry
await link.async_get_hierarchy()
File "/usr/local/lib/python3.7/site-packages/lightwave2/lightwave2.py", line 210, in async_get_hierarchy
await self.async_update_featureset_states()
File "/usr/local/lib/python3.7/site-packages/lightwave2/lightwave2.py", line 247, in async_update_featureset_states
x.features[y][1] = value["items"][0]["payload"]["value"]
KeyError: 'payload'

@bigbadblunt
Copy link
Owner

HI, I can't reproduce (it's working ok for me). Can you turn on debugging and send me the log file please?

Add the following to configuration.yaml

logger:
  default: warning
  logs:
    lightwave2.lightwave2: debug
    custom_components.lightwave2: debug

@Humphaz
Copy link
Author

Humphaz commented Jun 22, 2020

It fixed itself this morning during its planned restart?

Weird. I will activate logger next time, forgot, my apologies, evidently you've created self healing code.

:o)

@bigbadblunt
Copy link
Owner

bigbadblunt commented Jun 22, 2020

Good news. Most likely a glitch in the response from the lightwave servers.

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

No branches or pull requests

2 participants