File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ unless the [Logger](/integrations/logger/) is enabled at least for level `info`,
131
131
logger:
132
132
default: info
133
133
logs:
134
- homeassistant.components .pyscript: info
134
+ custom_components .pyscript: info
135
135
` ` `
136
136
</div>
137
137
@@ -608,7 +608,7 @@ The [Logger](/integrations/logger/) component can be used to specify the logging
608
608
below the configured level will not appear in the log. Each log message function uses a log name of
609
609
the form :
610
610
` ` ` yaml
611
- homeassistant.components .pyscript.file.FILENAME.FUNCNAME
611
+ custom_components .pyscript.file.FILENAME.FUNCNAME
612
612
` ` `
613
613
where `FUNCNAME` is the name of the top-level Python function (e.g., the one called by a trigger or
614
614
service), defined in the script file `FILENAME.py`. That allows you to set the log level for each
@@ -618,8 +618,8 @@ functions that the top-level Python function calls. For example, these settings:
618
618
logger:
619
619
default: info
620
620
logs:
621
- homeassistant.components .pyscript.file: info
622
- homeassistant.components .pyscript.file.my_scripts.my_function: debug
621
+ custom_components .pyscript.file: info
622
+ custom_components .pyscript.file.my_scripts.my_function: debug
623
623
` ` `
624
624
will log all messages at `info` or higher (ie : ` log.info()` , `log.warning()` and `log.error()`), and
625
625
inside `my_function` defined in the script file `my_scripts.py` (and any other functions it calls)
You can’t perform that action at this time.
0 commit comments