Skip to content

Empty literal breaks AppDaemon apps integration #5

Description

@robertodelgado16

After generating new data for my home assistant instance I see fields are set as empty literals. When I run AppDaemon I see the following error:

2026-08-04 19:43:38.300532 ERROR Error: =====  Error importing 'security.frigate'  ================================
2026-08-04 19:43:38.300754 ERROR Error: FailedImport: Failed to import 'security.frigate'
2026-08-04 19:43:38.302292 ERROR Error:   SyntaxError: invalid syntax (hass_data.py, line 23)
2026-08-04 19:43:38.302510 ERROR Error:     State12: TypeAlias = Literal[]
2026-08-04 19:43:38.302774 ERROR Error:                                  ^
2026-08-04 19:43:38.302929 ERROR Error: ===========================================================================

The fix is to just add a value to the Literal such as Literal['']

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