adaptive-lighting: Error doing job: Task exception was never retrieved after update to v1.18.0

Home Assistant Adaptive Lighting Issue Template

Bug Reports

If you need help with using or configuring Adaptive Lighting, please open a Q&A discussion thread here instead.

Before submitting a bug report, please follow these troubleshooting steps:

Please confirm that you have completed the following steps:

Required information for bug reports:

Please include the following information in your issue.

Issues missing this information may not be addressed.

In HA Core v2023.8.0b1 (I don’t see the errors when I roll back to v2023.7.3) I see these errors in the LOG:

  1. Debug logs captured while the issue occurred. See here for instructions on enabling debug logging:
Logger: homeassistant
Source: custom_components/adaptive_lighting/switch.py:1418
Integration: Adaptieve verlichting ([documentation](https://github.com/basnijholt/adaptive-lighting#readme), [issues](https://github.com/basnijholt/adaptive-lighting/issues))
First occurred: 11:33:14 (1 occurrences)
Last logged: 11:33:14
Error doing job: Task exception was never retrieved

Traceback (most recent call last):
  File "/config/custom_components/adaptive_lighting/switch.py", line 1159, in _async_update_at_interval_action
    await self._update_attrs_and_maybe_adapt_lights(
  File "/config/custom_components/adaptive_lighting/switch.py", line 1418, in _update_attrs_and_maybe_adapt_lights
    assert isinstance(adapt_color, bool)
AssertionError

I also see this Error:

Logger: homeassistant.components.switch
Source: custom_components/adaptive_lighting/switch.py:1418
Integration: Schakelaar ([documentation](https://rc.home-assistant.io/integrations/switch), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+switch%22))
First occurred: 11:27:57 (2 occurrences)
Last logged: 11:27:57

    Error adding entities for domain switch with platform adaptive_lighting
    Error while setting up adaptive_lighting platform for switch

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 750, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1003, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/adaptive_lighting/switch.py", line 993, in async_added_to_hass
    await self.async_turn_on(adapt_lights=not self._only_once)
  File "/config/custom_components/adaptive_lighting/switch.py", line 1144, in async_turn_on
    await self._update_attrs_and_maybe_adapt_lights(
  File "/config/custom_components/adaptive_lighting/switch.py", line 1418, in _update_attrs_and_maybe_adapt_lights
    assert isinstance(adapt_color, bool)
AssertionError
  1. Your Adaptive Lighting configuration:

  1. (If using Zigbee2MQTT), provide your configuration files (remove all personal information before posting):
    • devices.yaml
    • groups.yaml
    • configuration.yaml ⚠️; Warning REMOVE ALL of the PERSONAL INFORMATION BELOW before posting ⚠️;
      • mqtt: server:
      • mqtt: user:
      • mqtt: password:
      • advanced: pan_id:
      • advanced: network_key:
      • anything in log_syslog if you use this
    • Brand and model number of problematic light(s)

  1. Describe the bug and how to reproduce it:

  2. Steps to reproduce the behavior:

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 24 (11 by maintainers)

Most upvoted comments

@bcutter and @giannoug, your issue should be fixed by #687.

I released 1.18.2.

Quick test: should indeed be fixed. Will monitor it for a while. Thanks for fabulously quick response 👍

@bcutter and @giannoug, your issue should be fixed by #687.

I released 1.18.2.