Skip to content

. in app name causes issue #2530

@acockburn

Description

@acockburn

What happened?

if an app contains a dot (.) in its name, I am getting an unhandled exception.

It seems to be an issue from AppDaemon and not how ControllerX works with it. This is an example app that gets this exception:

.test_app: module: controllerx class: E2002LightController controller: office_controller2 integration: name: z2m listen_to: mqtt light: light.office

Despite the error, the app works as expected.

Version

6.5.12

Installation type

Docker container

Relevant log output

2026-01-17 10:14:02.039157 ERROR Error: =====  Unhandled exception in Task-903  ===================================
2026-01-17 10:14:02.039360 ERROR Error: KeyError: 'totalcallbacks'
2026-01-17 10:14:02.040175 ERROR Error:   File "/usr/local/lib/python3.12/site-packages/appdaemon/threads.py", line 1019, in async_worker
2026-01-17 10:14:02.040275 ERROR Error:     await self.update_thread_info("async", "idle", name, _type, _id, silent)
2026-01-17 10:14:02.040350 ERROR Error:   File "/usr/local/lib/python3.12/site-packages/appdaemon/threads.py", line 476, in update_thread_info
2026-01-17 10:14:02.040404 ERROR Error:     await self.add_to_attr("_threading", "admin", appentity, "totalcallbacks", 1)
2026-01-17 10:14:02.040450 ERROR Error:   File "/usr/local/lib/python3.12/site-packages/appdaemon/state.py", line 723, in add_to_attr
2026-01-17 10:14:02.040487 ERROR Error:     state["attributes"][attr] = copy(state["attributes"][attr]) + i
2026-01-17 10:14:02.040518 ERROR Error:                                      ~~~~~~~~~~~~~~~~~~~^^^^^^
2026-01-17 10:14:02.040550 ERROR Error: ===========================================================================

Relevant code in the app or config file that caused the issue

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issueSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions