1 """Tessie helper functions."""
5 from tesla_fleet_api.exceptions
import TeslaFleetError
10 from .const
import DOMAIN
14 """Handle a command."""
16 result = await command
17 except TeslaFleetError
as e:
19 translation_domain=DOMAIN,
20 translation_key=
"command_failed",
21 translation_placeholders={
"message": e.message},
23 _LOGGER.debug(
"Command result: %s", result)
dict[str, Any] handle_command(command)