Skip to content

Commit

Permalink
fix: provide default path_vars in action API (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehendrix23 authored Nov 26, 2024
1 parent 200ac43 commit a208759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tesla_custom/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def api(call):
command,
parameters,
)
path_vars = parameters.pop(ATTR_PATH_VARS)
path_vars = parameters.pop(ATTR_PATH_VARS, {})
response = await controller.api(name=command, path_vars=path_vars, **parameters)
return response

Expand Down

0 comments on commit a208759

Please sign in to comment.