mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Remove unnecessary assignment of Template.hass from emulated_kasa (#123670)
This commit is contained in:
parent
b9010e96a0
commit
77e9acd864
@ -95,8 +95,6 @@ async def validate_configs(hass, entity_configs):
|
|||||||
power_val = entity_config[CONF_POWER]
|
power_val = entity_config[CONF_POWER]
|
||||||
if isinstance(power_val, str) and is_template_string(power_val):
|
if isinstance(power_val, str) and is_template_string(power_val):
|
||||||
entity_config[CONF_POWER] = Template(power_val, hass)
|
entity_config[CONF_POWER] = Template(power_val, hass)
|
||||||
elif isinstance(power_val, Template):
|
|
||||||
entity_config[CONF_POWER].hass = hass
|
|
||||||
elif CONF_POWER_ENTITY in entity_config:
|
elif CONF_POWER_ENTITY in entity_config:
|
||||||
power_val = entity_config[CONF_POWER_ENTITY]
|
power_val = entity_config[CONF_POWER_ENTITY]
|
||||||
if hass.states.get(power_val) is None:
|
if hass.states.get(power_val) is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user