diff --git a/custom_components/tesla_custom/services.py b/custom_components/tesla_custom/services.py index 802f7e0..ca3c2fb 100644 --- a/custom_components/tesla_custom/services.py +++ b/custom_components/tesla_custom/services.py @@ -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