Skip to content

Latest HA update 2025.12.3 broke '@pyscript_compile' #793

@erkr

Description

@erkr

After my update from HA core 2025.12.2 to 2025.12.3, my modules that use @pyscript_compile fail to load.

Example of the module code:

import yaml

# this extra class avoids we add the generic loader for others 
@pyscript_compile
class YamlLoader(yaml.SafeLoader):
    pass

The error:

This error originated from a custom integration.

Logger: custom_components.pyscript.file.search_config
Source: custom_components/pyscript/global_ctx.py:341
integration: Pyscript Python scripting (documentation, issues)
First occurred: 20:22:58 (1 occurrence)
Last logged: 20:22:58

Exception in </config/pyscript/modules/yaml_loader.py> line 4: @pyscript_compile ^ NameError: name 'pyscript_compile' is not defined ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions