Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HA log entry: NameError: name 'logger.info' is not defined - line 4173 #670

Open
sirtakahe opened this issue Dec 26, 2024 · 1 comment
Open

Comments

@sirtakahe
Copy link

Add the Python script to the HA config sub-folder, and pscripts to HACS but get the following error:

This error originated from a custom integration.

Logger: custom_components.pyscript.file.shellies_discovery_gen2
Source: custom_components/pyscript/global_ctx.py:341
integration: Pyscript Python scripting (documentation, issues)
First occurred: 6:20:26 PM (1 occurrences)
Last logged: 6:20:26 PM

Exception in </config/pyscript/shellies_discovery_gen2.py> line 4173: logger.info("Shellies Discovery Gen2 version: %s", VERSION) # noqa: F821 ^ NameError: name 'logger.info' is not defined

@ALERTua
Copy link
Contributor

ALERTua commented Dec 26, 2024

it's log.info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants