Skip to content

Infinite asyncio tasks created for Kuando Busylights (add_task bug). #416

@aponoran

Description

@aponoran

Software Versions:

  • Operating System: MacOSx Sonoma 14.6.1
  • Python version: 3.9
  • BusyLight version: 0.32.0

General Type of Problem

  • Integrating into another project
  • other

Describe the Problem
When setting colors on Kuando Busylightrs new asyncio tasks get created every time a new color is set. There is a keepalive task that gets created each time "on" is called.

I traced it back to the def taskable add_task method which doen not correctly lookuop the task by name in the tasks dictionary.
It is added in the dictionary with the name concatenated id of the object, but looked up only byy name.

Expected Behavior
Only one keep alive task should be created per light instance.

Error Output
If there was an error displayed, paste it in here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions