mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix implicit-return in humidifier (#122921)
This commit is contained in:
parent
9860109db9
commit
4a4209647e
@ -99,9 +99,10 @@ async def async_call_action_from_config(
|
|||||||
service = const.SERVICE_SET_MODE
|
service = const.SERVICE_SET_MODE
|
||||||
service_data[ATTR_MODE] = config[ATTR_MODE]
|
service_data[ATTR_MODE] = config[ATTR_MODE]
|
||||||
else:
|
else:
|
||||||
return await toggle_entity.async_call_action_from_config(
|
await toggle_entity.async_call_action_from_config(
|
||||||
hass, config, variables, context, DOMAIN
|
hass, config, variables, context, DOMAIN
|
||||||
)
|
)
|
||||||
|
return
|
||||||
|
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
DOMAIN, service, service_data, blocking=True, context=context
|
DOMAIN, service, service_data, blocking=True, context=context
|
||||||
|
Loading…
x
Reference in New Issue
Block a user