Skip to content

Commit 7ea18d4

Browse files
committed
add paragraph to the README about entity_ids function
1 parent ee1a871 commit 7ea18d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ In cases where you need to compute the name of the state variable dynamically, o
265265
set the state attributes, you can use the built-in functions `state.get(name)` and
266266
`state.set(name, value, attr=None)`; see below.
267267

268+
The function `entity_ids(domain=None)` returns a list of all `entity_id`s of a domain. If domain
269+
is not specified, it returns all entities.
270+
268271
Also, service names (which are called as functions) take priority over state variable names,
269272
so if a component has a state variable name that collides with one of its services, you'll
270273
need to use `state.get(name)` to access that state variable.

0 commit comments

Comments
 (0)