def _handle_service(service): """Handle service call.""" index = service.data.get(ATTR_VEHICLE_INDEX) command = service.data.get(ATTR_COMMAND) try: motorparts.remote_command(session, command, index) except motorparts.MoparError as error: _LOGGER.error(str(error))