Skip to content

Commit 51b3d8b

Browse files
committed
few edits to new_features
1 parent c286b69 commit 51b3d8b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/new_features.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The new features since 0.32 in master include:
2121
- The ``hass`` object is available in all pyscript global contexts if the ``hass_is_global`` configuration parameter
2222
is true (default false). This allows access to HASS internals that might not be otherwise exposed by pyscript.
2323
Use with caution (#51).
24-
- Improvements to UI config flow, including allows parameters to be updated, and the UI reload now works the same
24+
- Improvements to UI config flow, including allowing parameters to be updated, and the UI reload now works the same
2525
as the ``pyscript.reload`` service call, submitted by @raman325 (#53)
2626
- State variables now support virtual attributes ``last_changed`` and ``last_updated`` for the UTC time when state
2727
values or any attribute was last changed.
@@ -40,11 +40,13 @@ The new features since 0.32 in master include:
4040
installed on HASS startup and pyscript reload. Contributed by @raman325 (#66, #68, #69).
4141
- State variable attributes can be set by direct assignment, eg: ``DOMAIN.name.attr = value``. A
4242
equivalent new function ``state.setattr()`` allows a specific attribute to be set.
43+
- The reload service now takes an optional parameter ``global_ctx_only`` that specifies just that
44+
global context is reloaded, eg: ``global_ctx_only="file.my_scripts"``. Proposed by @dlashua (#63).
4345
- The ``state.get_attr()`` function has been renamed ``state.getattr()``. The old function is
4446
still available and will be removed in some future release.
4547
- Entities ``DOMAIN.ENTITY`` now support a virtual method ``SERVICE`` (eg, ``DOMAIN.ENTITY.SERVICE()``)
46-
that calls a service ``DOMAIN.SERVICE`` for any service that has an ``entity_id`` parameter.
47-
Proposed by @dlashua (#64).
48+
that calls the service ``DOMAIN.SERVICE`` for any service that has an ``entity_id`` parameter, with
49+
that ``entity_id`` set to ``DOMAIN.ENTITY``. Proposed by @dlashua (#64).
4850

4951
The bug fixes since 0.32 in master include:
5052

0 commit comments

Comments
 (0)