mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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]
|
||||
if isinstance(power_val, str) and is_template_string(power_val):
|
||||
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:
|
||||
power_val = entity_config[CONF_POWER_ENTITY]
|
||||
if hass.states.get(power_val) is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user