Skip to content

Error: /circadian_lighting/switch.py", line 384, in _light_state_changed assert new_state and new_state.state == "on" #262

@mgaeremynck

Description

@mgaeremynck

Hello,

I always get following error in my logs:

`This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/circadian_lighting/switch.py:384
integration: Circadian Lighting (documentation, issues)
First occurred: 12:50:24 PM (2 occurrences)
Last logged: 12:50:56 PM

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/circadian_lighting/switch.py", line 384, in _light_state_changed
assert new_state and new_state.state == "on"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError`

I have following config
- platform: circadian_lighting name: CGs Circadian lighting disable_entity: binary_sensor.cgs_circadian_blocker disable_state: "on" #sleep_entity: binary_sensor.night #sleep_state: "on" #sleep_brightness: 50 lights_ct: - light.cgs_bedroom_led

All entities are working correctly, any idea why this is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions