@@ -8,28 +8,28 @@ callable as Python functions, so it's easy and concise to implement
88logic.
99
1010Functions you write can be configured to be called as a service or run
11- upon time, state-change or event triggers. Functions can also call any
12- service, fire events and set state variables. Functions can sleep or
11+ upon time, state-change, or event triggers. Functions can also call any
12+ service, fire events, and set state variables. Functions can sleep or
1313wait for additional changes in state variables or events, without
1414slowing or affecting other operations. You can think of these functions
1515as small programs that run in parallel, independently of each other, and
1616they could be active for extended periods of time.
1717
18- State, event and time triggers are specified by Python function
18+ State, event, and time triggers are specified by Python function
1919decorators (the "@" lines immediately before each function definition).
2020A state trigger can be any Python expression using state variables - the
2121trigger is evaluated only when a state variable it references changes,
2222and the trigger occurs when the expression is true or non-zero. A time
23- trigger could be a single event (eg: date and time), a repetitive event
24- (eg: at a particular time each day or weekday, daily relative to sunrise
25- or sunset or any regular time period within an optional range) or using
23+ trigger could be a single event (e.g., date and time), a repetitive event
24+ (e.g., at a particular time each day or weekday, daily relative to sunrise
25+ or sunset, or any regular time period within an optional range), or using
2626cron syntax (where events occur periodically based on a concise
27- specification of ranges of minutes, hours, days of week, days of month
27+ specification of ranges of minutes, hours, days of week, days of month,
2828and months). An event trigger specifies the event type, and an optional
2929Python trigger test based on the event data that runs the Python
3030function if true.
3131
32- Pyscript implements a Python interpreter using the ast parser output, in
32+ Pyscript implements a Python interpreter using the AST parser output, in
3333a fully async manner. That allows several of the "magic" features to be
3434implemented in a seamless Pythonic manner, such as binding of variables
3535to states and functions to services. Pyscript supports imports, although
@@ -41,10 +41,10 @@ generators, ``yield``, and defining special class methods.
4141Pyscript provides a handful of additional built-in functions that connect
4242to HASS features, like logging, accessing state variables as strings
4343(if you need to compute their names dynamically), running and managing
44- tasks, sleeping and waiting for triggers.
44+ tasks, sleeping, and waiting for triggers.
4545
4646Pyscript also provides a kernel that interfaces with the Jupyter
47- front-ends (eg, notebook, console, lab and VSC). That allows you to develop
47+ front-ends (eg, notebook, console, lab, and VSC). That allows you to develop
4848and test pyscript code interactively. Plus you can interact with much of
4949HASS by looking at state variables, calling services etc, in a similar
5050way to `HASS
@@ -59,11 +59,11 @@ which can be downloaded and run interactively in Jupyter notebook or VSC
5959connected to your live HASS with pyscript.
6060
6161Pyscript provides functionality that complements the existing
62- automations, templates and triggers. Pyscript is most similar to
62+ automations, templates, and triggers. Pyscript is most similar to
6363`AppDaemon <https://appdaemon.readthedocs.io/en/latest/ >`__, and some
6464similarities and differences are discussed in this `Wiki
6565page <https://github.com/custom-components/pyscript/wiki/Comparing-Pyscript-to-AppDaemon> `__.
66- Pyscript with Jupyter makes it extremely easy to learn, use and debug.
66+ Pyscript with Jupyter makes it extremely easy to learn, use, and debug.
6767Pyscripts presents a simplified and more integrated binding for Python
6868scripting than `Python
6969Scripts <https://www.home-assistant.io/integrations/python_script> `__,
0 commit comments