pyscript icon indicating copy to clipboard operation
pyscript copied to clipboard

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

Open sirtakahe opened this issue 1 year ago • 1 comments

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

sirtakahe avatar Dec 26 '24 05:12 sirtakahe

it's log.info

ALERTua avatar Dec 26 '24 08:12 ALERTua