We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ad5a4 commit ee1a871Copy full SHA for ee1a871
custom_components/pyscript/handler.py
@@ -34,6 +34,7 @@ def init(hass):
34
"task.unique": Handler.task_unique,
35
"service.call": Handler.service_call,
36
"service.has_service": Handler.service_has_service,
37
+ "entity_ids": Handler.entity_ids,
38
}
39
40
#
@@ -57,6 +58,9 @@ def init(hass):
57
58
59
Handler.loggers = {}
60
61
+ async def entity_ids(domain=None):
62
+ return Handler.hass.states.async_entity_ids(domain)
63
+
64
async def async_sleep(duration):
65
"""Implement task.sleep()."""
66
await asyncio.sleep(float(duration))
0 commit comments