Teach state and numeric_state conditions about entity registry ids (#60841)
This commit is contained in:
parent
a07f75c6b0
commit
0e3bc21d54
23 changed files with 236 additions and 31 deletions
|
@ -67,7 +67,9 @@ async def async_get_conditions(
|
|||
|
||||
|
||||
@callback
|
||||
def async_condition_from_config(config: ConfigType) -> condition.ConditionCheckerType:
|
||||
def async_condition_from_config(
|
||||
hass: HomeAssistant, config: ConfigType
|
||||
) -> condition.ConditionCheckerType:
|
||||
"""Create a function to test a device condition."""
|
||||
if config[CONF_TYPE] == "is_jammed":
|
||||
state = STATE_JAMMED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue