mirror of
https://github.com/home-assistant/core.git
synced 2026-05-08 17:49:37 +01:00
Teach state and numeric_state conditions about entity registry ids (#60841)
This commit is contained in:
@@ -58,7 +58,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_on":
|
||||
state = STATE_ON
|
||||
|
||||
Reference in New Issue
Block a user