question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

V2.0.0b: error in Logs

See original GitHub issue

After updating to v2.0.0b I see this error, and the lights don’t change in color:

Log Details (ERROR)
Logger: homeassistant
Source: custom_components/circadian_lighting/switch.py:381
First occurred: 8:24:57 PM (9 occurrences)
Last logged: 8:24:57 PM

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/circadian_lighting/switch.py", line 381, in _light_state_changed
    if to_state.state == "on" and from_state.state != "on":
AttributeError: 'NoneType' object has no attribute 'state'

This is on HA-Core/hassio v0.114.3.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
basnijholtcommented, Sep 5, 2020

The problem should be fixed now (see the PR).

I had never actually tried switching on and off the switch after I made the change to async… My bad.

1reaction
basnijholtcommented, Sep 5, 2020

I can indeed also reproduce the issue. The code in the pull request fixes another problem actually.

I will post a fix in a few hours!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors In log · Issue #3635 · Sonarr/Sonarr - GitHub
It looks like your DB is readonly to the user running Sonarr or corrupt in some way. All reactions.
Read more >
Xiaomi MiWiFi component for tracking devices and managing ...
MiWiFi for Home Assistant The component allows you to monitor devices and manage routers based on MiWiFi from Home Assistant.
Read more >
GMAT Error Log : General GMAT Questions and Strategies
The purpose of an error log is to keep track of your mistakes. You can use one of these fancy spreadsheets, you can...
Read more >
Log system - GitLab Docs
log. It logs information related to certificate-based clusters, such as connectivity errors. Each line contains JSON that can be ingested by services like ......
Read more >
error-logging - npm search
Special Logging and Error Notification functions that use various colors and create links to the target code. Also includes a global Debugger Object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found