Skip to content

Commit 656665b

Browse files
committed
docs for default_attributes on state.persist()
1 parent 1bf67b7 commit 656665b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ Persistent State
569569

570570
This method is provided to indicate that a particular entity_id should be persisted. This is only effective for entitys in the `pyscript` domain.
571571

572-
``state.persist(entity_id, default_value=None)``
573-
Indicates that the entity named in `entity_id` should be persisted. Optionally, a default value can be provided.
572+
``state.persist(entity_id, default_value=None, default_attributes=None)``
573+
Indicates that the entity named in `entity_id` should be persisted. Optionally, a default value and default attributes can be provided.
574574

575575

576576

0 commit comments

Comments
 (0)