Skip to content

Commit a7cb189

Browse files
committed
minor updates
1 parent 52fde9e commit a7cb189

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ this [README](https://github.com/craigbarratt/hass-pyscript-jupyter/blob/master/
5959

6060
## Configuration
6161

62-
* Go to the Integrations menu in the Home Assistant Configuration UI and add `Pyscript Python scripting` from there, or add `pyscript:` to `<config>/configuration.yaml`; pyscript has one optional configuration parameter that allows any python package to be imported if set, eg:
62+
* Go to the Integrations menu in the Home Assistant Configuration UI and add `Pyscript Python scripting` from there. Alternatively, add `pyscript:` to `<config>/configuration.yaml`; pyscript has two optional configuration parameters that allow any python package to be imported if set and to expose `hass` as a variable; both default to `false`:
6363
```yaml
6464
pyscript:
6565
allow_all_imports: true
66+
hass_is_global: true
6667
```
6768
* Add files with a suffix of `.py` in the folder `<config>/pyscript`.
6869
* Restart HASS.
@@ -83,6 +84,7 @@ for setting up a development environment and running tests.
8384
* [Issues](https://github.com/custom-components/pyscript/issues)
8485
* [Wiki](https://github.com/custom-components/pyscript/wiki)
8586
* [GitHub repository](https://github.com/custom-components/pyscript) (please add a star if you like pyscript!)
87+
* [Release notes](https://github.com/custom-components/pyscript/releases)
8688
* [Jupyter notebook tutorial](https://nbviewer.jupyter.org/github/craigbarratt/hass-pyscript-jupyter/blob/master/pyscript_tutorial.ipynb)
8789

8890
## Copyright

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# -- Project information -----------------------------------------------------
2020

2121
project = 'hacs-pyscript'
22-
copyright = '2020, Craig Barratt'
22+
copyright = '2020-2021, Craig Barratt'
2323
author = 'Craig Barratt'
2424

2525
# The full version, including alpha/beta/rc tags

info.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ See the documentation if you want to install pyscript manually.
2323

2424
## Configuration
2525

26-
* Go to the Integrations menu in the Home Assistant Configuration UI and add `Pyscript Python scripting` from there, or add `pyscript:` to `<config>/configuration.yaml`; see docs for optional parameters
26+
* Go to the Integrations menu in the Home Assistant Configuration UI and add `Pyscript Python scripting` from there, or add `pyscript:` to `<config>/configuration.yaml`; see docs for optional parameters.
2727
* Add files with a suffix of `.py` in the folder `<config>/pyscript`.
28-
* Whenever you change a script file, make a `reload` service call to `pyscript`.
28+
* Whenever you change a script file it will be auto-reloaded.
2929
* Watch the HASS log for `pyscript` errors and logger output from your scripts.
3030
* Consider installing the optional Jupyter kernel, so you can use pyscript interactively.
3131

@@ -35,5 +35,6 @@ See the documentation if you want to install pyscript manually.
3535
* [Using Jupyter](https://github.com/craigbarratt/hass-pyscript-jupyter)
3636
* [Jupyter notebook tutorial](https://nbviewer.jupyter.org/github/craigbarratt/hass-pyscript-jupyter/blob/master/pyscript_tutorial.ipynb)
3737
* [GitHub repository](https://github.com/custom-components/pyscript) (please add a star if you like pyscript!)
38+
* [Release notes](https://github.com/custom-components/pyscript/releases)
3839
* [Issues](https://github.com/custom-components/pyscript/issues)
3940
* [Wiki](https://github.com/custom-components/pyscript/wiki)

0 commit comments

Comments
 (0)